Files
panda-meb/board
Cameron Clough 3a17c2e07f Ford: add safety code for LCA vehicles (#966)
* Ford: add CAN messages and signal definitions

* Ford: implement safety hooks

* Ford: add safety unit tests

* Use standstill signal

* Rename bus

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Simplify brake pressed

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Ford LKAS msg helper

* Simplify button violation check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Simplify LKAS action check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Tidy up tests

* Use standstill signal for tests

* Misra fix

* Unused definition

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Simplify signal bit shifting

* Remove type hints

* Add panda safety type hints

* Fix vehicle moving signal

* Fix button checks

* Fix steer allowed tests

* Fix standstill threshold in tests

* Maybe this works?

* More button tests

* Revert "Simplify button violation check"

This reverts commit c6496269844328a007ea52b5766501d7c1ea40c2.

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-23 16:54:58 -07:00
..
2022-05-19 15:59:58 -07:00
2022-04-01 19:15:04 -07:00
2021-07-02 18:25:35 -07:00
2021-07-14 13:49:28 -07:00
2022-04-01 19:15:04 -07:00
2021-06-18 16:42:49 -07:00
2022-04-01 19:15:04 -07:00
2022-04-01 19:15:04 -07:00
2022-05-02 13:36:19 -07:00
2022-05-02 13:36:19 -07:00
2021-07-02 18:25:35 -07:00
2021-12-06 14:39:28 -08:00
2022-04-01 19:15:04 -07:00
2022-04-01 19:15:04 -07:00
2022-04-01 19:15:04 -07:00
2022-05-02 13:36:19 -07:00
2021-12-06 14:39:28 -08:00

Dependencies

Mac

xcode-select --install
./get_sdk_mac.sh

Debian / Ubuntu

./get_sdk.sh

Programming

Panda

scons -u -j$(nproc)  # Compile
./flash_h7.sh        # for red panda
./flash.sh           # for other pandas

Troubleshooting

If your panda will not flash and is quickly blinking a single Green LED, use:

./recover_h7.sh  # for red panda
./recover.sh     # for other pandas

A panda paw can be used to put panda into DFU mode.

dfu-util for flashing