Skip to content

Commit

Permalink
battery temp
Browse files Browse the repository at this point in the history
  • Loading branch information
rav4kumar committed Nov 11, 2020
1 parent b96f7c0 commit 55f8b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ void update_sockets(UIState *s) {
}
if (sm.updated("thermal")) {
scene.thermal = sm["thermal"].getThermal();
scene.pa0 = scene.thermal.getbat();
}
if (sm.updated("ubloxGnss")) {
auto data = sm["ubloxGnss"].getUbloxGnss();
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/ui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ typedef struct UIScene {
float gpsAccuracy;
float angleSteersDes;
float angleSteers;
float pa0;
float bat;
float freeSpace;
int lead_status;
int lead_status2;
Expand Down

0 comments on commit 55f8b8b

Please sign in to comment.