panda/board/pedal
Adeeb Shihadeh e7f2e72c3d
setup independent watchdog (#1404)
* setup independent watchdog

* builds

* same file

* configurable timeout

* disable for now

* no feed

* rm

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-05-05 16:46:38 -07:00
..
.gitignore Pedal: only one firmware (#164) 2019-03-03 21:04:41 -08:00
README update pedal readme 2021-11-20 20:17:49 -08:00
flash_can.sh use all cores (#898) 2022-04-01 19:15:04 -07:00
main.c setup independent watchdog (#1404) 2023-05-05 16:46:38 -07:00
main_declarations.h rename puts to avoid conflict with stdio.h (#1174) 2022-11-29 22:55:10 -08:00
recover.sh use all cores (#898) 2022-04-01 19:15:04 -07:00

README

# pedal

This is the firmware for the comma pedal.

The comma pedal is a gas pedal interceptor for Honda/Acura and Toyota/Lexus. It allows you to "virtually" press the pedal and borrows a lot from panda.

== Test Plan ==

* Startup
** Confirm STATE_FAULT_STARTUP
* Timeout
** Send value
** Confirm value is output
** Stop sending messages
** Confirm value is passthru after 100ms
** Confirm STATE_FAULT_TIMEOUT
* Random values
** Send random 6 byte messages
** Confirm random values cause passthru
** Confirm STATE_FAULT_BAD_CHECKSUM
* Same message lockout
** Send same message repeated
** Confirm timeout behavior
* Don't set enable
** Confirm no output
* Set enable and values
** Confirm output