From d16ee6ecc8f38c90da4798f0eeacbfd0c3118de4 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 2 Apr 2023 12:59:13 -0700 Subject: [PATCH] boardd: log voltage and current from panda (#27789) * boardd: log voltage and current from panda * bump cereal --- cereal | 2 +- selfdrive/boardd/boardd.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cereal b/cereal index d70d215de6..5827c4e17e 160000 --- a/cereal +++ b/cereal @@ -1 +1 @@ -Subproject commit d70d215de6c584f671272d2de2f46a4f778e9f14 +Subproject commit 5827c4e17ef0c6bb3de24f987ca2f5e0fb3f464b diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index 8f045c2a69..ec8be95f94 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -363,6 +363,8 @@ std::optional send_panda_states(PubMaster *pm, const std::vector } auto ps = pss[i]; + ps.setVoltage(health.voltage_pkt); + ps.setCurrent(health.current_pkt); ps.setUptime(health.uptime_pkt); ps.setSafetyTxBlocked(health.safety_tx_blocked_pkt); ps.setSafetyRxInvalid(health.safety_rx_invalid_pkt);