martinl
f674084db5
MacOS: use gcc-12 for building tests ( #1241 )
...
* MacOS: use gcc-12 for building tests
* Update README.md
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-03-13 16:21:43 -07:00
Jason Young
3a5bbc6f20
VW PQ: Corrected message name for ACC_GRA_Anzeige ( #1286 )
2023-03-13 13:36:41 -07:00
Adeeb Shihadeh
efb36197bb
PandaDFU: SPI support ( #1270 )
...
* PandaDFU: SPI support
* get mcu type
* program bootstub
* little cleanup
* more cleanup
* connect by dfu serial
* time to remove that
* none
* fix linter
* little more
* catch
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-06 21:52:08 -08:00
Adeeb Shihadeh
18230831f3
PandaDFU: abstract out USB comms ( #1274 )
...
* wip
* revert that
* split list + connect
* some more
* mypy fix
* add clear status back
* rename
* cleanup
* cleaner mypy fix
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-06 09:24:00 -08:00
Adeeb Shihadeh
946f952aa7
DFU HITL tests ( #1276 )
...
* DFU HITL tests
* fix + types
* fix
* clear first
2023-03-05 20:19:27 -08:00
Shane Smiskol
e0e754de2c
safety replay: make Ford work ( #1272 )
...
* make replay work for ford
* revert debugging stuff
* clean that up
2023-03-03 20:48:04 -08:00
Shane Smiskol
f7ba061279
Ford: test quality flags ( #1266 )
...
* adeeb
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* check checksum
* think pylint won't like this
* complete test
* do this
* no need
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-03-01 19:17:40 -08:00
Shane Smiskol
cb0cbf10d7
Ford: set quality flags, checksum in safety tests ( #1265 )
...
set quality flags, checksum
2023-02-24 23:03:21 -08:00
Shane Smiskol
8bb62cf226
Ford: check quality flag ( #1264 )
...
* quality flag support
* add NULL to other safety modes
* add to safety helpers debug print
* comment
* rename to quality_flag and add comment
2023-02-24 22:54:51 -08:00
Shane Smiskol
f07309f74b
Ford: set vehicle speed and check counter ( #1261 )
...
* set vehicle speed and check counter
* organize
* fix
* and test it properly
* fix horrible bug :( test_models now passes!
2023-02-24 16:51:10 -08:00
Shane Smiskol
26ae1599ba
safety tests: refactor for cars with standstill bits ( #1259 )
...
* need this
* clean up
* pass on _speed_msg
2023-02-23 21:09:48 -08:00
Shane Smiskol
ff39bc472d
Angle control safety: match openpilot limits ( #1254 )
...
* make limits match OP
* make tesla match too
* fudge speed
* we reason
* needs to be negative
2023-02-22 20:05:33 -08:00
Adeeb Shihadeh
9fe24bd368
Revert "GM: update steering limits ( #1239 )" ( #1248 )
...
This reverts commit 0d2ee00921 .
2023-02-21 15:34:09 -08:00
Adeeb Shihadeh
0d2ee00921
GM: update steering limits ( #1239 )
...
* lower steer down val, increase allowance
* fix test fail
---------
Co-authored-by: nuwandavek <vivekaithal44@gmail.com >
2023-02-14 12:55:26 -08:00
Robbe Derks
d6af117c62
Microsecond timer fix ( #1236 )
...
* add microsecond timer readout
* add CI test
* fix
2023-02-14 12:16:15 +01:00
Adeeb Shihadeh
14051f9ce3
Chrysler: revert rate limit increase ( #1240 )
...
* Revert "Chrysler: add flag for alternate steer limits (#1238 )"
This reverts commit d15250cb14 .
* Revert "Chrysler: increase torque rate limits (#985 )"
This reverts commit ae051c94a3 .
2023-02-13 14:13:40 -08:00
Shane Smiskol
17450b277d
Same mypy checks as openpilot ( #1233 )
...
* no specific revision for mypy
* bump to ~OP version
* same warnings as openpilot
* ignore
* fix
* rm that
* switch to ignore so mypy lets us know when it's fixed
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2023-02-11 12:25:13 -08:00
Shane Smiskol
7d27eb10fb
GM: adjust steering rate limits for slower message rate ( #1235 )
...
* Adjust GM steering limits for 50Hz -> 33Hz change
* fix test
2023-02-07 23:33:51 -08:00
Shane Smiskol
0f964c6db3
Ford: lateral motion control safety ( #1228 )
...
* assert the other signals are zeroed
* add to tja function
* fix misra
* test
* should tx
* ?
* rm line
* up here
* Update tests/safety/test_ford.py
* faster
* adjust round
2023-02-02 23:02:03 -08:00
Adeeb Shihadeh
e7f36a2992
python: assume F4 MCU for bootstubs without bcdDevice set ( #1229 )
...
* python: assume F4 MCU for bootstubs without bcdDevice set
* cleanup
2023-01-28 14:41:52 -08:00
Adeeb Shihadeh
6ae5212d6a
python lib: add SPI bootloader support ( #1224 )
...
* talk to spi bootloader
* flashing bootstub
* reset
* get mcu type
* little more
* pull out low level panda comms
* lint
* program app
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-01-28 00:32:07 -08:00
Adeeb Shihadeh
76d0459182
cleanup MCU definitions ( #1226 )
...
* cleanup MCU definitions
* rename
* enum
* enum
* fix that
2023-01-26 20:54:11 -08:00
Adeeb Shihadeh
ae051c94a3
Chrysler: increase torque rate limits ( #985 )
2023-01-25 18:51:36 -08:00
Adeeb Shihadeh
0535f5f779
small HITL test speedup ( #1222 )
...
* small speedup
* cleanup
* parallel connect
* little more
* less flaky
* update number of pandas
Co-authored-by: Bruce Wayne <batman@comma.ai >
2023-01-23 15:05:16 -08:00
Adeeb Shihadeh
bf3791bdf2
CI: speedup CAN FD tests ( #1221 )
...
speedup canfd
Co-authored-by: Bruce Wayne <batman@comma.ai >
2023-01-22 16:47:59 -08:00
Adeeb Shihadeh
97ad63b586
CI: faster and more reliable HW reset ( #1220 )
...
* CI: faster and more reliable HW reset
* little more speed
* cleanup
Co-authored-by: Bruce Wayne <batman@comma.ai >
2023-01-22 16:20:35 -08:00
Adeeb Shihadeh
3048760737
SPI: connect by serial/UID ( #1213 )
...
* SPI: connect by serial/UID
* cleanup
* not everyone can have spi
* fix that
* move that
* mypy fix
Co-authored-by: Comma Device <device@comma.ai >
2023-01-15 23:30:24 -08:00
Adeeb Shihadeh
b8693da342
add comms handler to get MCU UID ( #1212 )
...
* cleanup first
* get uid
* add to bootstub and test
* fix pedal
* match that
Co-authored-by: Comma Device <device@comma.ai >
2023-01-15 20:13:26 -08:00
Shane Smiskol
bdf39a451e
Panda: context manager support ( #1209 )
...
* add __enter__ & __exit__ to Panda
* some examples
* another example
* even more
* use it here too
2023-01-13 16:17:20 -08:00
Robbe Derks
11d90f9e78
No more magic for the can chunks ( #1191 )
...
* no more magic
* bump version
* no need for this
* comment cleanup
* add comms_can_reset tests
* we can't ensure this for compatibility reasons
* add CANPacket_t checksum
2023-01-13 10:59:58 -08:00
Shane Smiskol
0b3b906036
VW: match openpilot standstill check ( #1064 )
...
* VW: match openpilot standstill check
* fixes
* check > 0
* fix comments
* misra
* better
2023-01-10 22:00:20 -08:00
Shane Smiskol
345147fe2b
tests: clean up abstract methods ( #1196 )
...
* don't need to redefine _torque_cmd_msg in abstract subclasses
* fix
* pylint has a bug?
* test pylint
* clean up
2022-12-15 15:50:15 -08:00
Adeeb Shihadeh
9e5c28e568
safety replay updates for CAN-FD
2022-12-13 20:21:04 -08:00
Adeeb Shihadeh
4edd1a6021
Hyundai: alt steering limits ( #1186 )
...
* Hyundai: alt steering limits
* parans
2022-12-02 23:34:06 -08:00
Shane Smiskol
a6d0765b69
safety: common angle checks ( #1182 )
...
* common angle checks
* clean up
* clean up check and add comments
* readable
* ints
* tests draft
* clean up
* comment
* pylint exception
* clean up
* duplicate
2022-12-02 16:45:23 -08:00
Shane Smiskol
6e8a4fcc38
safety tests: common angle tests ( #1185 )
...
* basic formatting
* common tests
* assert truthfulness
* ignore single pylint exception
* wya too many lines
2022-12-02 16:05:35 -08:00
Robbe Derks
288e14cde9
Simple CAN chunking ( #1011 )
...
* simple chunking
* make pylint happy
* misra happy?
* good practice anyways since we cast to a uint32_t later
* fix bug dropping packets
* minor fixes + prepare for shared lib testing
* working library now
* first queue test
* can send test
* fix running in github actions?
* add big rx test and fix it
* don't complain about empty buffers
* disable for now
* comment
* test runs
* some cleanup
* merge those
* test works
* rm that
* comment
* proper logging
* makes things too slow
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-11-30 23:38:00 -08:00
Adeeb Shihadeh
88b30e1a84
CAN comms test ( #1181 )
...
* CAN comms test
* remove those
* cleanup
* little more
2022-11-30 22:12:28 -08:00
Shane Smiskol
2ae7b9a4d5
scons: put targets in global SConscript ( #1180 )
...
* Revert "remove unused scons argument (#1169 )"
This reverts commit 702e5281d8 .
* try this
* clean up
* default true
* default true
* already built
2022-11-30 20:22:09 -08:00
Shane Smiskol
a0b1d64e4e
Honda Nidec: max gas safety and common speed cmd checks ( #1179 )
...
* limit gas and speed
* gas safety test
2022-11-30 18:56:05 -08:00
Adeeb Shihadeh
1f73c70fdc
generic libpanda for tests ( #1177 )
...
* generic libpanda for tests
* move safety helpers
* fix ci build
* fix running
* opendbc is in the image
* make can packet
* rename
2022-11-30 17:41:24 -08:00
Adeeb Shihadeh
27504639f0
cleanup + prep for more tests! ( #1172 )
...
* panda for pc!
* little more
* fake panda
* move some more stuff
* increase timeout
* move that
* print helpers
* cleanup
* just move it for now
* revert jenkins changes
2022-11-30 14:15:09 -08:00
Shane Smiskol
e8bd1df511
safety: common gas & brake safety checks ( #1168 )
...
* do toyota, hyundai, gm
* comments
* honda draft
* Revert "honda draft"
This reverts commit a1f466a5c9 .
* do tesla
* vw draft
* finish vw
* fix safety
* clean up
* fix function names
* do honda and fix safety test not checking pos accel for bosch
* clean that up
2022-11-29 23:45:55 -08:00
Shane Smiskol
2baa0ffed5
Safety: common acceleration cmd checks ( #1171 )
...
* do toyota, hyundai, gm
* comments
* honda draft
* Revert "honda draft"
This reverts commit a1f466a5c9 .
* do tesla
* vw draft
* finish vw
* fix safety
* only accel
* only accel
* some clean up
* fix mqb tests
* rename
2022-11-29 16:46:32 -08:00
Adeeb Shihadeh
80dac4cd94
cleanup CAN definitions ( #1170 )
2022-11-29 15:56:43 -08:00
Shane Smiskol
702e5281d8
remove unused scons argument ( #1169 )
...
* clean
* also here
2022-11-29 01:28:46 -08:00
Shane Smiskol
8accca13ad
VW: explicitly test for inactive accel ( #1167 )
...
* explicitely test for inactive accel
* fix the safety
* and catch the mistake
* revert
2022-11-28 22:37:59 -08:00
Robbe Derks
360f8e63df
reconnecting debug console
2022-11-24 16:09:39 +01:00
Jason Young
e4c4253964
VW MQB: Redundant brake pressed signals ( #1137 )
...
* VW MQB: Redundant brake pressed signals
* bump timer for safety tests in CI
* use nicer f-string syntax
* don't need that
2022-11-22 14:27:52 -08:00
Adeeb Shihadeh
e5e34b16f5
som debug script
2022-11-17 17:06:28 -08:00