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
a5ddde5d20
Ford: check checksums ( #1263 )
...
* add signal names
* add checksum for BrakeSysFeatures
* add yaw data
* order
* misra
2023-02-24 19:44:37 -08:00
Shane Smiskol
384211eb13
Ford: check counter for yaw rate ( #1262 )
...
add yaw rate
2023-02-24 17:10:42 -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
Robbe Derks
1923b14189
RTC: increase LSE drive strength on H7 ( #1252 )
...
* higher LSE drive strength
* split out init per chip type
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-02-24 16:59:58 +01: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
Shane Smiskol
a99f85dc8c
Nissan: use averaged left and right wheel speeds ( #1255 )
...
* average left and right for a more accurate speed
* fix
* fix (again)
2023-02-22 19:46:07 -08:00
Comma Device
d076e9fb75
fix register divergent
2023-02-22 15:49:11 +00:00
Adeeb Shihadeh
9fe24bd368
Revert "GM: update steering limits ( #1239 )" ( #1248 )
...
This reverts commit 0d2ee00921 .
2023-02-21 15:34:09 -08:00
Robbe Derks
d2c2d5f926
Fix short pulse of relay drive after reset ( #1244 )
...
fix order of gpio init
Co-authored-by: Comma Device <device@comma.ai >
2023-02-20 13:47:35 +01: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
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