Skip to content
Snippets Groups Projects
Commit 68a1689b authored by Angel's avatar Angel
Browse files

reverse small thing

parent bcb3b7dc
No related branches found
No related tags found
No related merge requests found
......@@ -734,8 +734,8 @@ void CFBatteryCallback(const std_msgs::Float32& msg)
if((flying_state != STATE_MOTORS_OFF && (filtered_battery_voltage < m_battery_threshold_while_flying)) ||
(flying_state == STATE_MOTORS_OFF && (filtered_battery_voltage < m_battery_threshold_while_motors_off)))
{
// if(getBatteryState() != BATTERY_STATE_LOW)
setBatteryStateTo(BATTERY_STATE_LOW);
if(getBatteryState() != BATTERY_STATE_LOW)
setBatteryStateTo(BATTERY_STATE_LOW);
ROS_INFO("low level battery triggered");
}
else //maybe add hysteresis somewhere here?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment