Commit 310b0577 authored by Yvan Bosshard's avatar Yvan Bosshard
Browse files

uncommented Battery status info

parent 6cbb2a7a
......@@ -299,13 +299,13 @@ void MainWindow::updateBatteryVoltage(float battery_voltage)
QString qstr = "";
qstr.append(QString::number(battery_voltage, 'f', 2));
qstr.append(" V");
ROS_INFO_STREAM("battery voltage " << battery_voltage);
//ROS_INFO_STREAM("battery voltage " << battery_voltage);
ui->voltage_field->setText(qstr);
}
void MainWindow::CFBatteryCallback(const std_msgs::Float32& msg)
{
ROS_INFO("callback CFBattery received in GUI");
//ROS_INFO("callback CFBattery received in GUI");
updateBatteryVoltage(msg.data);
}
......
......@@ -623,7 +623,7 @@ void CFBatteryCallback(const std_msgs::Float32& msg)
{
if(getBatteryState() != BATTERY_STATE_LOW)
setBatteryStateTo(BATTERY_STATE_LOW);
ROS_INFO("low level battery triggered");
//ROS_INFO("low level battery triggered");
}
else //maybe add hysteresis somewhere here?
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment