Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boardd: add blocked msg cnt #23647

Merged
merged 3 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cereal
2 changes: 1 addition & 1 deletion panda
1 change: 1 addition & 0 deletions selfdrive/boardd/boardd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ bool send_panda_states(PubMaster *pm, const std::vector<Panda *> &pandas, bool s

auto ps = pss[i];
ps.setUptime(pandaState.uptime);
ps.setBlockedCnt(pandaState.blocked_msg_cnt);
ps.setIgnitionLine(pandaState.ignition_line);
ps.setIgnitionCan(pandaState.ignition_can);
ps.setControlsAllowed(pandaState.controls_allowed);
Expand Down
1 change: 1 addition & 0 deletions selfdrive/boardd/panda.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct __attribute__((packed)) health_t {
uint8_t power_save_enabled;
uint8_t heartbeat_lost;
uint16_t unsafe_mode;
uint32_t blocked_msg_cnt;
};

struct __attribute__((packed)) can_header {
Expand Down