Commit Graph

27 Commits

Author SHA1 Message Date
Adeeb Shihadeh
b32f4f099a CANParser: python rewrite (#2539)
* Add pure Python CAN parser

* cleanup

* lil more

* rm cython

* cleanup
2025-07-23 16:06:54 -07:00
Adeeb Shihadeh
7ff7798a29 CANParser: auto-detect frequency (#2527)
* noop first

* move valid

* flatten

* update cython

* counters aren't special

* counter is special... for now

* fix mac

* works pretty well

* fix 1khz radar

* handle timeout

* cleanup

* ignore alive for the bolt

* lil simpler

* revert that

* Blinkmodi_02 special sauce

* cleanup
2025-07-22 20:09:13 -07:00
DevTekVE
659b311c5d Add support for generating clang compilation database by default (#2428)
* Add support for generating clang compilation database

* compilation db by default
2025-07-03 10:08:46 -07:00
Shane Smiskol
25579c1f51 safety: always build with coverage information (#2327)
* always build cov

* wtf its borken

* Revert "wtf its borken"

This reverts commit 793513520d5f7ab08438dc907a5762ab71677f40.

* no env.append

* not supported by clang -- isn't needed?
2025-05-29 15:45:52 -07:00
Shane Smiskol
f960080e28 Revert "enable cpplint" (#2245)
Revert "enable cpplint (#2238)"

This reverts commit c0bdcc58df.
2025-05-14 19:46:08 -07:00
Aubrey Wahl
c0bdcc58df enable cpplint (#2238)
* enable cpplint

* fix misra

* newline

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-05-14 14:30:49 -07:00
Shane Smiskol
6f83fdf9b9 Move car safety modes to opendbc (#1713)
* move safety tests

* move libsafety

* move safety

* rename imports

* copy over needed (minimalized) board and driver code

* dont test safety here

* add new job for safety tests

fix

* try fix

* ubsan

* ?

?

* missing cffi

* should be final fix

* mac fix

* no mac

* use setup script

* no cd

* this is the correct way to do it

* add misra

* misra fixes

* run

* setup misra

* add missing files

* is this used?

* add that

* Revert "is this used?"

This reverts commit 2f34762dfa65821e1ee398675bf62d1a256ebec8.

* need this

* misra mutation test

* fix

* no race conditions

* test

* cache cppcheck

fix

* setup

* good timeouts

* mutation test

* fix

* no

* Revert "no"

This reverts commit 39e10a045a4a5411a64de791ae463461f8a5f37b.

* already tested

* move Safety Model readme section to opendbc

* fix

* fix

* disable mutation tests for merge

* namespace

* test no cache

* 1m

1m
2025-02-19 17:19:31 -08:00
Shane Smiskol
3c6e530d2e SConscript (#1520)
* try this

* better

* and that

* fix that
2024-11-22 13:29:05 -08:00
Louis Velez
551081b32f Build Dbcs with scons (#1519)
* clean-up generated dbcs and adds them to gitignore

* Adds SConscript for dbcs and adds reference to SConstruct
2024-11-22 10:46:24 -08:00
Louis Velez
e57375f1e2 CI: fix macOS test running (#1516)
* CI: fixes MacOS test running

* CI: adds coreutils for nproc

* CI: fixes based on PR

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-11-21 14:16:17 -08:00
Adeeb Shihadeh
3537404a18 no docker (#1081)
* cleanup dependencies

* all

* install

* less

* try this

* slimmm

* skip docker

* silence that one

* disable for now

* e

* fix build

* bring that back

* not ready yet
2024-08-17 12:04:46 -07:00
Dean Lee
39a5345924 CANParser: remove dependence on cereal (#934)
* move car interfaces to opendbc

* Revert "move car interfaces to opendbc"

This reverts commit 0589ea0dbec5e3d25ed4498257eb162d656780bb.

* remove dependence on cereal

* parse can strings in a c++ helper function

* remove all cereal

* reserve

* use itervalues

* rebase master

* cleanup

* keep the same style

* revert unrelated changes

* truly no cereal!

* same capitalization

same capitalization

* parser: declutter nanos usage (#1067)

thought there'd be more

* revert more

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-07-31 00:10:20 -07:00
Adeeb Shihadeh
e0d4be4a62 update to ubuntu 24.04 (#1037)
* update to ubuntu 24.04

* Update .github/workflows/repo.yml

* Update tests.yml

* Update Dockerfile

* bump cereal

* no pyenv

* python3 dev

* vla

* python
2024-04-28 14:04:59 -07:00
Adeeb Shihadeh
23878eecf0 update build flag 2023-08-24 14:04:09 -07:00
Maxime Desroches
4231b0f12d Update cython (#903)
* cython

* ref

* test

* Werror
2023-07-18 14:06:53 -07:00
Adeeb Shihadeh
06a3e7db6f add cpplint (#773)
* add cpplint

* passes

* bump cereal

* here's a real hash
2022-12-31 16:49:26 -08:00
Shane Smiskol
b302f6934e Dynamically parse DBCs (#602)
* initial commit, bring over from deanlee's PR based on newer commit

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix msb, lsb, size

* fix lsb

* clean up

* need this for CI

* add missing body checksum/counter

* get dir from BASEDIR first, then $HOME

* fix CI

* doesn't work

* just hardcode when compiling

* remove process_dbc

* add test for startup time

* test can parsing

* fix

* better

* bye bye dbc.py

* fix startswith

* add function to get dbc names for plotjuggler

* check DBC_FILE_PATH

* revert

* rename

* slightly more consistent at ~0.57 seconds

* make sure the tests make sense

* test ms per line

* use ctre

* Revert "use ctre"

This reverts commit 5e1a4440e465c901403a9717bbdef5b573e9838e.

* compile regex at import time

* add debug print and lower test time

* add comment

* 0.02 ms per line max

* better error messages

* only include what we need, and make it explicit

* check total time

check total time

* no global

* always a list

* not a c loop any more

* default to list

* use hex

* make static (only calculate path once)

* seems to be more consistent now (30-38 ms)

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2022-05-12 17:59:33 -07:00
Adeeb Shihadeh
9f3902657d cleanup sconstruct 2022-04-19 10:55:38 -07:00
Mayfield
fc71f723ee enable wshadow (#461)
* enable Wshadow flag

* specify cereal commit

* exclude cython

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 14:40:00 +01:00
Willem Melching
23a500ef83 Fix CI: export common and add numpy includes (#421)
* Fix CI: export common in SConstruct

* add numpy includes

* add numpy to requirements
2021-08-30 17:53:14 -07:00
Adeeb Shihadeh
29cec9b8cc fix missing QCOM_REPLAY import in cereal SConscript 2021-01-30 17:20:13 -08:00
grekiki
699dc63a88 Scons cython builder (#316)
* migrate to home pc

* style

* this works

* this is hacky

* why doesn't this work

* this should work

* no lint

* link against libdbc wtih abs path

* new env

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-26 16:11:23 -08:00
Willem Melching
25dc12a87b c++17 (#305) 2020-10-17 12:41:35 -07:00
Adeeb Shihadeh
9ee0069ecc rebuild cython extensions when python/cython/distuils change 2020-07-16 13:36:28 -07:00
Adeeb Shihadeh
3cfb5c7778 enable -Wunused (#280) 2020-07-08 00:39:35 -07:00
Adeeb Shihadeh
1fd5a9b954 enable -Werror 2020-06-27 17:43:51 -07:00
Willem Melching
a265d3512c Azure pipelines ci (#202)
* add docker file and sconstruct

* this should work in ci

* remove branch name
2019-12-03 19:45:33 +01:00