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
Adeeb Shihadeh
d15250cb14
Chrysler: add flag for alternate steer limits ( #1238 )
2023-02-10 22:20:50 -08:00
Robbe Derks
796d771912
Enable control over the fan on C3 while still in the bootloader ( #720 )
...
* GPIO control over the fan from ABL
* fixes
* leave this todo
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-02-08 16:01:14 +01: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
82151aaffe
usb handle: ignore types ( #1234 )
...
ignore types
2023-02-07 20:02:06 -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
6ec0c80754
python: common base handle for SPI + USB ( #1231 )
...
* base handle
* usb handle
* rm
* more types
2023-01-28 16:01:54 -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
Robbe Derks
33e576214d
Tres: enable IR power irregardless of fan state ( #1225 )
...
* enable IR power irregardless of fan
* fix misra
Co-authored-by: Comma Device <device@comma.ai>
2023-01-26 18:06:02 +01:00
Adeeb Shihadeh
ae051c94a3
Chrysler: increase torque rate limits ( #985 )
2023-01-25 18:51:36 -08:00
Robbe Derks
687676be40
Add timeout to spi driver ( #1223 )
...
add timeout to spi driver
Co-authored-by: Comma Device <device@comma.ai>
2023-01-24 13:50:51 +01:00
Igor Biletksyy
9b23622e91
RP: pull USB_EN up
2023-01-23 17:23:33 -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
2036533670
python: show SPI pandas in list ( #1216 )
...
* refactor connect
* spi list
* add back bcd
* couple fixes
* fix
Co-authored-by: Comma Device <device@comma.ai>
2023-01-22 21:49:14 -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
Igor Biletskyy
4750449f3c
RP: obsolete USB load switch ( #1219 )
2023-01-19 17:07:50 -08:00
Adeeb Shihadeh
3743b2de51
chiplet: move OBD_SBU_RELAY2 to PA3 ( #1217 )
...
Co-authored-by: Igor Biletksyy <bs@privacy.im>
2023-01-18 16:31:51 -08:00
Adeeb Shihadeh
60cf9e9d22
Revert "chiplet: move OBD_SBU_RELAY2 to PA3"
...
This reverts commit a0bd6bb21a
.
2023-01-18 14:32:25 -08:00
Igor Biletksyy
a0bd6bb21a
chiplet: move OBD_SBU_RELAY2 to PA3
2023-01-17 16:27:00 -08:00
Adeeb Shihadeh
0e5a2a47da
python lib: print() -> logging ( #1215 )
...
* python lib: print() -> logging
* fstrings are fine
2023-01-15 23:51:25 -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
Willem Melching
fa678e28fc
MacOS: no spidev package ( #1211 )
2023-01-15 12:51:22 -08:00
Adeeb Shihadeh
e83b2189c1
lock spi device during transfers ( #1207 )
2023-01-14 23:32:17 -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
Cameron Clough
520b9f1a8e
examples: choose panda for fw query ( #1076 )
...
* examples: choose panda for fw query
* add type names
* add types and names to lists
* cleanup
* better output
* exit code
* dict
* delete
* get_type returns a bytearray
* simplify (okay to rely on Panda for this error catching)
* finish up
* not required for our use case
* clean up
* revert
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-13 15:24:25 -08:00
Shane Smiskol
6f26866245
query_fw_versions: add arg to not multiplex bus 1 to OBD-II port ( #1210 )
...
* add arg to not multiplex (useful for auxpanda)
* formatting
* consistent quotes
2023-01-13 15:20:42 -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
Robbe Derks
744b21ef69
Bring back green led mode + fix small python lib bug ( #1206 )
...
bring back green led mode
Co-authored-by: Panda Provisioning <panda@comma.ai>
2023-01-10 15:09:51 -08:00
Willem Melching
8b513970c3
fix debug uart buffer size ( #1204 )
2023-01-09 17:27:46 -08:00
Robbe Derks
3034180753
Reset CAN ign when the specific message is not seen anymore ( #1200 )
2023-01-09 14:27:18 -08:00
Adeeb Shihadeh
0b58cb9e3c
lower spi ack timeout
2022-12-20 23:05:04 -08:00
Adeeb Shihadeh
5486eb3845
python lib: add SPI ACK timeout ( #1199 )
...
* python lib: add SPI ACK timeout
* fix that
Co-authored-by: Comma Device <device@comma.ai>
2022-12-20 22:07:24 -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
Shane Smiskol
eed75e7232
Bump opendbc ref and update pylint ( #1197 )
...
* Update opendbc ref
* fix linting
* fix linting
* bump opendbc ref and pylint to fix import error bug
* ignore unspecified-encoding (openpilot does this)
* this will fail until openpilot is bumped
* bump openpilot
* wait... this works now?!
* bump opendbc to master
2022-12-15 15:30:21 -08:00
Robbe Derks
6ba9afc33e
H7 clock source ( #1194 )
...
it's literally the same everything
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 16:12:09 +01:00
Robbe Derks
1d732d4747
F4: Cleanup clock src, second try ( #1193 )
...
* F4: cleanup clock source
* little more
* void
* restore the timer setup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 15:30:04 +01:00
Robbe Derks
d1d1f8a22d
Fake siren ( #1192 )
...
* DAC POC
* change freq
* some cleanup
* wip: cleaning up and trying to use DMA
* no clue why this doesn't work
* this works
* wip multi-master i2c for fake siren
* cleanup and some more i2c stuff
* seems more stable
* retry disabling and cleanup force siren
* fix misra violations
* not needed
* messed up rebase
Co-authored-by: Comma Device <device@comma.ai>
2022-12-14 11:25:54 +01:00
Adeeb Shihadeh
9e5c28e568
safety replay updates for CAN-FD
2022-12-13 20:21:04 -08:00
Adeeb Shihadeh
d375ce6421
jenkins updates for new master
2022-12-08 16:14:22 -08:00
Adeeb Shihadeh
93ecd31d3d
don't clog up jenkins build queue
2022-12-07 22:23:41 -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
Adeeb Shihadeh
616450c525
tres bootkick ( #1183 )
...
* tres: bootkick
* replace usb enum
Co-authored-by: Comma Device <device@comma.ai>
2022-12-01 20:04:30 -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