Commit Graph

2990 Commits

Author SHA1 Message Date
Adeeb Shihadeh
0f479a30a3 CI: reflash jungle (#1546) 2023-08-04 18:11:29 -07:00
Justin Newberry
7b6806c270 Safety: Add desired angle to safety helpers (#1554)
add desired angle
2023-08-04 17:30:10 -07:00
Justin Newberry
2a72404ccb Subaru: Add measured steering angle and vehicle speed (#1528)
* correct vehicle speed and add measured angle

* misra

* misra

* common test for angle

* PR cleanup

* use subaru prefix

* clean it up a bit

* minimize whitespace diff

* need float for deg_to_can
2023-08-04 17:16:35 -07:00
Adeeb Shihadeh
43bde4138d jungle: SBU provisioning tests (#1553)
* jungle: SBU provisioning tests

* update can_send

* cleanup

* fix misra

* space
2023-08-04 14:28:23 -07:00
Adeeb Shihadeh
1950ba6f83 cleanup bus count constant 2023-08-04 10:47:03 -07:00
Adeeb Shihadeh
977d702770 cleanup old pedal stuff (#1552) 2023-08-04 10:40:53 -07:00
Adeeb Shihadeh
d7120be904 panda jungle (#1547)
* mv jungle

* match pedal style

* fix linter

* fix fw path

* fix paths

* safety!
2023-08-03 23:55:13 -07:00
Adeeb Shihadeh
e7894e6770 Move CanHandle to python/ (#1550) 2023-08-03 23:10:16 -07:00
Adeeb Shihadeh
5af25e2a67 fix paths when building with different SConstruct 2023-08-03 22:24:20 -07:00
Adeeb Shihadeh
f37f8d90ba cleanup build, prep for jungle (#1549)
* cleanup build, prep for jungle

* cleanup

* update pedal obj path
2023-08-03 19:07:41 -07:00
Shane Smiskol
3e429ac0f8 Honda: remove duplicated relay transition time check (#1544)
already checked
2023-08-02 21:09:09 -07:00
Justin Newberry
1154eb2d75 Subaru: cleanup panda logic (#1543)
cleanup subaru
2023-08-02 15:13:01 -07:00
Robbe Derks
feef2e6c71 Harness tick at 8Hz (#1541)
harness tick at 8Hz

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 21:31:15 -07:00
Robbe Derks
b4700a876f Stable ADC on H7 (#1540)
* 256x oversampling

* reduce to 128x

* fix misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 20:48:10 -07:00
Robbe Derks
a945053ade Force relay drive (#1539)
force drive

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 16:33:34 -07:00
Adeeb Shihadeh
7f1944cf43 debug endpoint for custom clock source period (#1538)
* debug endpoint for custom clock source period

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-01 16:17:42 -07:00
Adeeb Shihadeh
1b706040cd pre-commit: autoupdate hooks (#1536)
* Update pre-commit hook versions

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-08-01 11:14:27 -07:00
Adeeb Shihadeh
ed8ff7e48a H7: explicitly disable GMLAN for now (#1532) 2023-07-24 15:01:19 -07:00
Justin Newberry
933a19af84 CI: bump refs (#1529)
ci bump refs
2023-07-21 00:06:59 -07:00
Adeeb Shihadeh
dd78b2bf6c python lib: allow infinite timeout 2023-07-20 14:28:16 -07:00
Adeeb Shihadeh
1eac0d7634 HITL: remove old check, it's always checked on panda connect now 2023-07-20 11:25:06 -07:00
Adeeb Shihadeh
8258d18e87 spi: bump version 2023-07-20 11:15:01 -07:00
Justin Newberry
72032e2850 Subaru: use generator for limits (#1527)
* generator

* remove torque reference

* fix misra

* misra
2023-07-19 23:32:31 -07:00
Justin Newberry
0acb7b9ee4 CI: Bump refs (#1520)
* bump refs

* bump opendbc

* bump refs

* bump refs
2023-07-18 12:31:16 -07:00
Shane Smiskol
05e0f4a944 IsoTpMessage: fix length mask for single frames (#1523)
* Update uds.py

* this was completely broken

* wait nevermind
2023-07-18 12:05:14 -07:00
Comma Device
5ca2d96b54 python lib: ensure full response is read in remaining 2023-07-18 01:06:37 -07:00
Adeeb Shihadeh
268f6bc2fb python: lock hw device inside loop (#1522) 2023-07-18 00:03:17 -07:00
Adeeb Shihadeh
b2741013f6 instructions for flashing internal panda (#1521)
* instructions for flashing internal panda

* Update board/README.md
2023-07-17 20:17:18 -07:00
Adeeb Shihadeh
5d873444b2 SPI: connect by VERSION command (#1495)
* SPI: connect by VERSION command

* shorter timeout

* add exception

* simple test

* fallback

* bootstub check

* update comments

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 19:33:18 -07:00
Adeeb Shihadeh
e8da4eab2e SPI: increase buffer size on H7 2023-07-16 12:56:05 -07:00
Cameron Clough
0c33554624 Ford CAN FD safety (#1455) 2023-07-16 15:09:37 +01:00
Cameron Clough
6e5009125a Ford: namespaced constants (#1516) 2023-07-16 12:13:09 +01:00
Adeeb Shihadeh
70c7763124 SPI kernel driver (#1497)
* kernel driver

* fix checksum check

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-15 12:26:24 -07:00
Igor Biletskyy
a9a3227008 can_health: remove enter and exit critical calls from health updater (#1513)
init
2023-07-14 19:36:04 -07:00
Igor Biletskyy
ad9ec716ac H7: CAN core reset on no ACK and high transmit error counter (#1502)
* init

* comment
2023-07-14 19:00:43 -07:00
Shane Smiskol
8e31711aa2 safety helpers: cruise engaged prev setter (#1511)
* bbb

* Apply suggestions from code review
2023-07-14 18:21:28 -07:00
Justin Newberry
c8acdc6f61 Subaru: cleanup tests (#1508)
* macro

* base tests

* leave it same as ford

* call base setupclass

* Update common.py

* Update test_hyundai_canfd.py

* merge
2023-07-14 12:43:49 -07:00
Justin Newberry
6d2b70a147 Subaru: Use macros for gen1/gen2 (#1505)
* macro

* revert these for first PR
2023-07-13 19:01:45 -07:00
Adeeb Shihadeh
6b9b448259 log device boot time (#1503)
* log device boot time

* misra

* only log real boots

* set gpio

* true

* initial

* log bootkick

* fix RPv2

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Igor Biletksyy <bs@privacy.im>
2023-07-12 20:34:46 -07:00
Justin Newberry
8ba5683881 Subaru: improve readability in panda code (#1380)
* improve readability

* cleanup for PR

* switch to #define

* i guess i forgot how #define works

* fix #define

* improve for preglobal too

* rename because of conflicts

* rename with subaru in name

* missed some

* missed that one too

* made it pretty

* whitespace

* infotainment match opendbc

* whitespace

* whitespace

* parameterize the bus too

* fix that

* fix misra violation

* multiline

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-07 01:48:30 -07:00
Shane Smiskol
c1e79333fb angle safety: make angle conversion factor a float (#1498)
* make this a float

* no need to cast to float now
2023-07-06 17:06:31 -07:00
Shane Smiskol
c97f572208 safety_toyota: use GET_BIT (#1496)
* use GET_BIT

* same for gas pressed

* brake pressed too

* fix

* another fix
2023-07-06 15:31:40 -07:00
Adeeb Shihadeh
a687b183ee SPI: update max IRQ rate (#1493) 2023-07-03 22:06:35 -07:00
Adeeb Shihadeh
14fd5ff5a3 SPI: send bootstub status in version request (#1492)
* mv first

* switch to crc8

* bootstub

* test

* cleanup

* little more

* misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-03 15:23:12 -07:00
Adeeb Shihadeh
d693e89df2 SPI: send hw type with version (#1490)
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:50:30 -07:00
Adeeb Shihadeh
abcbfb44b4 SPI: send serial with protocol version (#1489)
* SPI: send serial with protocol version

* misra

* fix test

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:13:57 -07:00
Adeeb Shihadeh
5abb2b58da SPI: add protcol version request (#1488)
* SPI: add protcol version request

* quick test

* fix linter

* misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 15:51:35 -07:00
Adeeb Shihadeh
1f50a84b86 update old comment (#1282) 2023-07-01 18:57:53 -07:00
Adeeb Shihadeh
5285eec35a pre-commit: autoupdate hooks (#1347)
* Update pre-commit hook versions

* fix that

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-07-01 18:03:53 -07:00
Adeeb Shihadeh
21843092ff bump to python 3.11.4 (#1481)
* bump to python 3.11.4

* Update .pre-commit-config.yaml

* lint

* import

* no | yet

* rm ignores

* Update tests/libpanda/libpanda_py.py

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-07-01 17:43:34 -07:00