Skip to content

Commit

Permalink
revert peripheral
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Sep 16, 2023
1 parent 89ed0d6 commit 2c99c19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cereal
7 changes: 5 additions & 2 deletions selfdrive/boardd/boardd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,11 @@ void panda_state_thread(std::vector<Panda *> pandas, bool spoofing_started) {
RateKeeper rk("panda_state_thread", 10);

while (!do_exit && check_all_connected(pandas)) {
// send out peripheralState
send_peripheral_state(&pm, peripheral_panda);
if (sm.frame % 5 == 0) {
// send out peripheralState at 2Hz
send_peripheral_state(&pm, peripheral_panda);
}

auto ignition_opt = send_panda_states(&pm, pandas, spoofing_started);

if (!ignition_opt) {
Expand Down

0 comments on commit 2c99c19

Please sign in to comment.