mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
* 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>
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