Skip to content

Commit

Permalink
body: set vehicle_moving (commaai#1591)
Browse files Browse the repository at this point in the history
* add vehicle_moving

* Update board/safety/safety_body.h
  • Loading branch information
sshane authored Aug 17, 2023
1 parent 95c89b8 commit d916357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions board/safety/safety_body.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ static int body_rx_hook(CANPacket_t *to_push) {

bool valid = addr_safety_check(to_push, &body_rx_checks, NULL, NULL, NULL, NULL);

// body is never at standstill
vehicle_moving = true;

controls_allowed = valid;

return valid;
Expand Down

0 comments on commit d916357

Please sign in to comment.