Skip to content

Commit

Permalink
src: sample: fix ranger demo
Browse files Browse the repository at this point in the history
  • Loading branch information
hanskw-weston committed Jan 15, 2024
1 parent f467e9b commit 57f9b72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sample/ranger_demo/ranger_robot_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ int main(int argc, char *argv[]) {

auto state = ranger->GetRobotState();
auto motion = ranger->GetActuatorState();
auto sensor = ranger->GetCommonSensorState();

std::cout << "-------------------------------" << std::endl;
std::cout << "count: " << count << std::endl;
Expand All @@ -58,9 +59,10 @@ int main(int argc, char *argv[]) {
<< static_cast<int>(state.system_state.vehicle_state)
<< std::endl;
std::cout << "battery voltage: " << state.system_state.battery_voltage
<< ", battery current: " << state.bms_basic_state.current
<< "battery voltage (BMS): " << sensor.bms_basic_state.voltage
<< ", battery current: " << sensor.bms_basic_state.current
<< ", SOC: "
<< static_cast<int>(state.bms_basic_state.battery_soc)
<< static_cast<int>(sensor.bms_basic_state.battery_soc)
<< std::endl;
std::cout << "velocity (linear, angular, lateral, steering): "
<< std::setw(6) << state.motion_state.linear_velocity << ", "
Expand Down

0 comments on commit 57f9b72

Please sign in to comment.