We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79ab5af commit 9d92bf2Copy full SHA for 9d92bf2
board/safety/safety_cadillac.h
@@ -1,4 +1,4 @@
1
-const int STEER_MAX = 150; // 1s
+const int CADILLAC_STEER_MAX = 150; // 1s
2
const int CADILLAC_IGNITION_TIMEOUT = 1000000; // 1s
3
4
int cadillac_ign = 0;
@@ -36,7 +36,8 @@ static int cadillac_tx_hook(CAN_FIFOMailBox_TypeDef *to_send) {
36
lkas_cmd = to_signed(lkas_cmd, 14);
37
// block message is controls are allowed and lkas command exceeds max, or
38
// if controls aren't allowed and lkas cmd isn't 0
39
- if (controls_allowed && ((lkas_cmd > STEER_MAX) || (lkas_cmd < -STEER_MAX))) {
+ if (controls_allowed &&
40
+ ((lkas_cmd > CADILLAC_STEER_MAX) || (lkas_cmd < -CADILLAC_STEER_MAX))) {
41
return 0;
42
} else if (!controls_allowed && lkas_cmd) return 0;
43
}
0 commit comments