Skip to content
Open
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
5 changes: 4 additions & 1 deletion projects/dashboard/src/StartMotors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ void StartMotors::CreateGUI() {
}

void StartMotors::Update() {
if (display_->enter.PosEdge()) {
auto veh_msg = display_->veh_bus.GetRxBppsSteerDebug();

if (display_->enter.PosEdge() &&
(veh_msg.has_value() && veh_msg->BppsPercent() > 0.20)) {
display_->ChangeState(State::STARTING_MOTORS);
}
}
1 change: 1 addition & 0 deletions projects/dashboard/src/StartingMotors.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "StartingMotors.hpp"

#include "Display.hpp"
#include "lvgl.h"

StartingMotors::StartingMotors(Display* display) : Screen(display) {}

Expand Down
8 changes: 4 additions & 4 deletions projects/veh.dbc
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ BO_ 401 AppsDebug: 8 FC
SG_ Apps2Percent : 48|16@1+ (0.1,0) [0|0] "percent" RPI

BO_ 402 BppsSteerDebug: 8 FC
SG_ BppsRawVolt : 0|16@1+ (0.001,0) [0|0] "volt" RPI
SG_ SteerRawVolt : 16|16@1+ (0.001,0) [0|0] "volt" RPI
SG_ BppsPercent : 32|16@1+ (0.1,0) [0|0] "percent" RPI
SG_ SteerPosition : 48|16@1+ (0.01,-1) [0|0] "[-1,+1]" RPI
SG_ BppsRawVolt : 0|16@1+ (0.001,0) [0|0] "volt" RPI, DASH
SG_ SteerRawVolt : 16|16@1+ (0.001,0) [0|0] "volt" RPI, DASH
SG_ BppsPercent : 32|16@1+ (0.1,0) [0|0] "percent" RPI, DASH
SG_ SteerPosition : 48|16@1+ (0.01,-1) [0|0] "[-1,+1]" RPI, DASH

BO_ 411 LvDbcHash: 8 LVC
SG_ Hash : 0|64@1+ (1,0) [0|1] "" FC
Expand Down
Loading