Skip to content

Commit

Permalink
ranger_base: updated BMS voltage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
karthee-weston committed Oct 9, 2024
1 parent 4576787 commit 6003a64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ugv_sdk/details/robot_base/ranger_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class RangerBase : public AgilexBase<ProtocolV2Parser>, public RangerInterface {

ranger_bms.bms_basic_state.current = common_sensor.bms_basic_state.current;
ranger_bms.bms_basic_state.voltage =
common_sensor.bms_basic_state.voltage * 0.1f;
common_sensor.bms_basic_state.voltage;
ranger_bms.bms_basic_state.battery_soc =
common_sensor.bms_basic_state.battery_soc;
ranger_bms.bms_basic_state.battery_soh =
Expand All @@ -123,7 +123,7 @@ class RangerMiniV2Base : public RangerBase {
// Note: BMS CAN message definition is not consistent across AgileX robots.
// RM2 BMS voltage data follows unit: 0.01V
ranger_bms.bms_basic_state.voltage =
common_sensor.bms_basic_state.voltage * 0.01f;
common_sensor.bms_basic_state.voltage * 0.1f;
ranger_bms.bms_basic_state.battery_soc =
common_sensor.bms_basic_state.battery_soc;
ranger_bms.bms_basic_state.battery_soh =
Expand Down

0 comments on commit 6003a64

Please sign in to comment.