This commit is contained in:
Your Name
2024-05-02 01:07:51 -05:00
parent 95a98a8fe8
commit c55a879968
83 changed files with 3570 additions and 69 deletions

View File

@@ -234,6 +234,16 @@ static bool chrysler_tx_hook(const CANPacket_t *to_send) {
}
// FORCE CANCEL: only the cancel button press is allowed
// SG_ ACC_Cancel : 0|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_Distance_Dec : 1|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_Accel : 2|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_Decel : 3|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_Resume : 4|1@0+ (1,0) [0|1] "" XXX
// SG_ Cruise_OnOff : 6|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_OnOff : 7|1@1+ (1,0) [0|0] "" XXX
// SG_ ACC_Distance_Inc : 8|1@1+ (1,0) [0|0] "" XXX
// SG_ COUNTER : 15|4@0+ (1,0) [0|15] "" XXX
// SG_ CHECKSUM : 23|8@0+ (1,0) [0|255] "" XXX
if (addr == chrysler_addrs->CRUISE_BUTTONS) {
const bool is_cancel = GET_BYTE(to_send, 0) == 1U;
const bool is_resume = GET_BYTE(to_send, 0) == 0x10U;