Commit Graph

835 Commits (spacecruft)

Author SHA1 Message Date
Kevin Roscom 4522320fdc use SAE J1850 for pedal 2022-02-23 00:12:44 -06:00
Kevin Roscom b8ce1c9686 toyota EPS ocelot gateway 2022-02-22 18:39:26 -07:00
wocsor e59134fec0 WIP: attempt to fix bug in smartdsu timeout 2021-12-29 15:23:37 -07:00
wocsor d527579b41 WIP: op compatibility mode 2021-11-15 12:41:17 -07:00
wocsor 60936e46e6 fix errors 2021-07-14 15:27:40 -04:00
wocsor 5275922413 hack to allow smartDSU to work on stock OP 2021-07-14 15:19:30 -04:00
wocsor 7aa6e7ae1f add smartdsu and ibst boards 2021-05-18 11:51:05 -04:00
Robbe Derks 54b12251dc fix typo 2021-05-03 16:17:26 +02:00
Robbe Derks 22556b1ddf fix health in python 2021-05-03 14:59:36 +02:00
Willem Melching 9a82ba3892
Disable interrupts in early() (#641)
* Disable interrupts in early()

* enable interrupts before going into DFU mode
2021-04-22 11:24:03 +02:00
Adeeb Shihadeh 7d9fdd1108
Toyota: whitelist LTA message (#638)
* Toyota: whitelist LTA message

* LTA safety

* simple test

* little more test

* misra
2021-04-06 16:56:03 -07:00
Greg Hogan c416419c16
hyundai: TCS13 checksum (#623) 2021-04-05 08:44:16 -07:00
Willem Melching d6d928125b Sconscript: requires on .o not on .elf 2021-04-01 16:40:28 +02:00
Willem Melching 0716851508 add back requires for parellel build 2021-04-01 16:36:47 +02:00
Willem Melching 27b4b57566 Don't trigger fw rebuild on git hash change 2021-04-01 14:29:51 +02:00
Greg Hogan a3b95dc26d
hyundai: WHL_SPD11 checksum (#622)
* WHL_SPD11 checksum

* update comments
2021-03-31 18:39:13 -07:00
Willem Melching f146aa367b recover.sh: dont fail if panda already in DFU mode 2021-03-26 17:21:01 +01:00
Willem Melching 4906dc7b22 sconsfile add proper require to gitversion 2021-03-25 18:08:22 +01:00
Willem Melching e53148d4c7
Update board/readme.md after switch to scons 2021-03-24 14:56:19 +01:00
Willem Melching ad9ecefe65
Switch panda to scons builder (#635)
* add scons builder

* cleanup 1

* remove building from python code

* add pedal build

* fixup flags

* add EON flag

* change github actions to scons

* fixup automated tests

* move flashing scripts

* fix indent

* remove version.mk

* fix not in git

* fix linker script filename

* untested pedal flashing scripts

* add release option

* better asserts

* swap condition

* enable usb and fix flash script

* usb flash is not supported

* use button to enable dfu mode

* no usb because misra

* remove sleep
2021-03-24 14:44:32 +01:00
Willem Melching d572c012cb
add safetyParam to health (#633)
* add safetyParam to health

* move copies together
2021-03-17 14:19:22 +01:00
Jason Young 9108b82fb0
VW MQB: Updated message and signal data, round 1 (#632)
* EPS_01 -> LH_EPS_03

* Bump openpilot commit ref

* made echo test more stable

* update python to 3.8.5

* Revert "Bump openpilot commit ref"

This reverts commit 75ec1a0c

* Bump openpilot commit ref

* Bump openpilot commit ref

* Update Dockerfile.panda

* fixed torque signal name

* Signal naming fix, round 2

* fix CI

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-14 16:24:53 -07:00
robbederks 0ae2be95a1
fix dos usb power mode (#628) 2021-02-22 16:12:48 +01:00
robbederks f2446c35d6
Move gmlan_alt to TIM12 to fix concurrency issue with IR PWM (#627)
* Moved gmlan_alt to TIM12

* forgot some stuff
2021-02-01 15:53:04 +01:00
Willem Melching 97cd401abf
fix pc detection, remove tools (#626) 2021-02-01 14:57:49 +01:00
George Hotz e035fa1d09
green led on 0xf7 (#619)
* green led on 0xf7

* add python interface

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
2021-01-05 14:51:58 +01:00
Andre Volmensky 72d6b6de69
Nissan Altima port (#612)
* Nissan Altima port

* Added bus check for Cruise Enabled message
2020-12-11 13:41:12 +01:00
robbederks 9f5f437c90
Fix C2 power draw (#614) 2020-12-03 14:32:10 +01:00
robbederks 6b869a6312
Don't turn off the phone power on C2s when changing USB mode (#611) 2020-11-10 11:26:02 +01:00
Adeeb Shihadeh 9fb584b20c
Hyundai: increase max torque (#602)
* increase max hyundai torque

* update test threshold
2020-10-01 12:03:23 -07:00
Robbe Derks 09997428f3 Fixed transceiver spelling 2020-09-28 16:19:09 +02:00
Adeeb Shihadeh 8b41ed3b81
Deprecate ESP (#592)
* remove unused wifi tests

* remove that one too

* no bootmode from ESP

* clean that up

* remove two more wifi tests

* remove boardesp and esptool

* esp_gps -> gps

* missed those

* remove esptool refs

* remove esp certs

* no more wifi

* that was old

* cleanup jenkins dockerfile

* fix linter

* remove more wifi refs

* clone panda jungle from github

* no copy

* always default esp to off
2020-08-26 15:37:50 -07:00
robbederks 5664a0e153
bootkick for dos (#595)
Co-authored-by: Tici <robbe@comma.ai>
2020-08-18 15:59:22 +02:00
robbederks 1515ec8bf5
Siren (#594)
* siren

* fix pedal

* update fault rate

Co-authored-by: Tici <robbe@comma.ai>
2020-08-17 15:04:01 +02:00
robbederks c3b02f3a74
Clock source driver (#580)
* Initial clock source implementation

* fix misra?

* Working now. Still need to fix board detection though

* Always stop pulse

* revert board detection bodge

Co-authored-by: Tici <robbe@comma.ai>
2020-08-17 13:02:41 +02:00
robbederks 1e60160a45
fix board detection for dos (#593) 2020-08-17 12:16:14 +02:00
Willem Melching ed0621137e Reserve Hyundai Community safety mode number 2020-08-10 11:58:06 +02:00
Andre Volmensky 3a8430b9d5
Updating X-Trail/Rogue gas_pressed threshold (#585) 2020-08-08 11:10:32 -07:00
martinl 32199b2e49
Replace pycrypto with pycryptodome (#581)
* replace pycrypto with pycryptodome

* replace all instances with pycryptodome
2020-08-05 12:58:43 -07:00
robbederks caf8670cff
Fix uno getting detected as dos (#578) 2020-07-29 14:36:23 +02:00
Andre Volmensky 4b576ab13d
Bugfix: Fix harness error when starting car (#572)
* Bugfix: Fix harness error when starting car

* fix misra violation

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-07-18 23:08:21 -07:00
Greg Hogan 390b8bce81
k-line 5 baud init (#565)
* k-line slow init

* k-line slow init LED bit blink

* fix misra violations

* better names for k-line methods

* debug prints match names

* switch to timer

* use TIM4 until I figure out TIM5

* tickle faster

* fix bit bug and add stop bit

* TIM5 working

* USB return after addr sent

* fix l-line reset

* fix misra violations

* blink for the ones instead of the zeros

* k-line 5 baud fault type

* lin check

* use TIM5 or wakeup

* better names
2020-07-10 14:18:24 -07:00
robbederks 2fab502cad
Increased pullup delay significantly to maybe improve board detection stability. 10 loops was only tens of ns. (#567) 2020-07-02 23:07:27 +02:00
robbederks 387fd681dd
USB enumeration detection fix (#566)
* testing

* Looks fixed now

* Cleanup
2020-07-02 00:23:12 +02:00
Greg Hogan 31f8a0d862
K line fix (#559)
* enable UART RX interrupts

* update debug prints for python3

* improve kline functions and fix checksum

* k-line wake-up conforming to KWP2000 fast init

* fix timing

* toggle k and l line together by default

* k-line wakeup using timer

* k and l were flipped

* fix misra compliance
2020-06-18 11:17:00 -07:00
Adeeb Shihadeh 1e6854eb8f
Fix GM ignition logic (#561) 2020-06-18 11:12:20 -07:00
Adeeb Shihadeh 5b14945140
Abstract RX checks for gas, brakes, and relay malfunction (#556)
* abstract gas, brake, and relay RX checks

* toyota

* mazda

* vw and subaru

* gm, honda, nissan

* chrysler

* rename

* revert that
2020-06-16 02:01:00 -07:00
Adeeb Shihadeh e13774ba8c remove unused TX msg for toyota safety 2020-06-15 20:06:56 -07:00
Adeeb Shihadeh abb229c9e7
Add gas signal for hyundai EV (#555) 2020-06-15 10:48:33 -07:00
Adeeb d0442fd1e4
add hyundai legacy safety mode (#554) 2020-06-12 18:03:31 -07:00