Browse Source

Use onboard remaining battery estimate by default

QGC4.4
Anton Babushkin 12 years ago
parent
commit
e2089acc0e
  1. 4
      src/uas/UAS.cc

4
src/uas/UAS.cc

@ -85,7 +85,7 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
currentVoltage(12.6f), currentVoltage(12.6f),
lpVoltage(12.0f), lpVoltage(12.0f),
currentCurrent(0.4f), currentCurrent(0.4f),
batteryRemainingEstimateEnabled(true), batteryRemainingEstimateEnabled(false),
// chargeLevel not initialized // chargeLevel not initialized
// timeRemaining not initialized // timeRemaining not initialized
lowBattAlarm(false), lowBattAlarm(false),
@ -211,7 +211,7 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
actions.append(newAction); actions.append(newAction);
color = UASInterface::getNextColor(); color = UASInterface::getNextColor();
setBatterySpecs(QString("9V,9.5V,12.6V")); setBatterySpecs(QString(""));
connect(statusTimeout, SIGNAL(timeout()), this, SLOT(updateState())); connect(statusTimeout, SIGNAL(timeout()), this, SLOT(updateState()));
connect(this, SIGNAL(systemSpecsChanged(int)), this, SLOT(writeSettings())); connect(this, SIGNAL(systemSpecsChanged(int)), this, SLOT(writeSettings()));
statusTimeout->start(500); statusTimeout->start(500);

Loading…
Cancel
Save