Browse Source

Merge branch 'config' of github.com:mavlink/qgroundcontrol into config

QGC4.4
Lorenz Meier 12 years ago
parent
commit
ea634b841f
  1. 4
      src/uas/UASParameterCommsMgr.cc
  2. 2
      src/ui/QGCToolBar.cc

4
src/uas/UASParameterCommsMgr.cc

@ -387,7 +387,7 @@ void UASParameterCommsMgr::updateSilenceTimer()
void UASParameterCommsMgr::setParameterStatusMsg(const QString& msg, ParamCommsStatusLevel_t level) void UASParameterCommsMgr::setParameterStatusMsg(const QString& msg, ParamCommsStatusLevel_t level)
{ {
qDebug() << "parameterStatusMsg: " << msg; //qDebug() << "parameterStatusMsg: " << msg;
emit parameterStatusMsgUpdated(msg,level); emit parameterStatusMsgUpdated(msg,level);
} }
@ -395,7 +395,7 @@ void UASParameterCommsMgr::receivedParameterUpdate(int uas, int compId, int para
{ {
Q_UNUSED(uas); //this object is assigned to one UAS only Q_UNUSED(uas); //this object is assigned to one UAS only
lastReceiveTime = QGC::groundTimeMilliseconds(); lastReceiveTime = QGC::groundTimeMilliseconds();
qDebug() << "compId" << compId << "receivedParameterUpdate:" << paramName; // qDebug() << "compId" << compId << "receivedParameterUpdate:" << paramName;
//notify the data model that we have an updated param //notify the data model that we have an updated param
paramDataModel->handleParamUpdate(compId,paramName,value); paramDataModel->handleParamUpdate(compId,paramName,value);

2
src/ui/QGCToolBar.cc

@ -464,6 +464,8 @@ void QGCToolBar::updateView()
} }
} }
}
if (toolBarBatteryVoltageLabel->isVisible()) {
toolBarBatteryVoltageLabel->setText(tr("%1 V").arg(batteryVoltage, 4, 'f', 1, ' ')); toolBarBatteryVoltageLabel->setText(tr("%1 V").arg(batteryVoltage, 4, 'f', 1, ' '));
} }

Loading…
Cancel
Save