mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
MADS: Honda: Allow steering (#66)
This commit is contained in:
@@ -276,7 +276,7 @@ static bool honda_tx_hook(const CANPacket_t *to_send) {
|
||||
|
||||
// STEER: safety check
|
||||
if ((addr == 0xE4) || (addr == 0x194)) {
|
||||
if (!controls_allowed) {
|
||||
if (!(controls_allowed || mads_is_lateral_control_allowed_by_mads())) {
|
||||
bool steer_applied = GET_BYTE(to_send, 0) | GET_BYTE(to_send, 1);
|
||||
if (steer_applied) {
|
||||
tx = false;
|
||||
|
||||
Reference in New Issue
Block a user