Skip to content

Commit

Permalink
Update libraries/AP_DDS/AP_DDS_Client.cpp
Browse files Browse the repository at this point in the history
I agree.

Co-authored-by: Ryan <[email protected]>
  • Loading branch information
muramura and Ryanf55 authored Oct 27, 2024
1 parent 234874d commit 13f80cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_DDS/AP_DDS_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ void AP_DDS_Client::update_topic(sensor_msgs_msg_BatteryState& msg, const uint8_
if (battery.current_amps(current, instance)) {
if (percentage == 100) {
msg.power_supply_status = 4; //POWER_SUPPLY_STATUS_FULL
} else if (is_negative(current)) { // TODO
} else if (is_negative(current)) {
msg.power_supply_status = 1; //POWER_SUPPLY_STATUS_CHARGING
} else if (is_positive(current)) {
msg.power_supply_status = 2; //POWER_SUPPLY_STATUS_DISCHARGING
Expand Down

0 comments on commit 13f80cc

Please sign in to comment.