1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Fixed incorrect UAVO field in PFD.

Made scope gadget widget non-existent field message more helpful.
This commit is contained in:
Laura Sebesta 2012-07-25 01:34:38 +02:00
parent a0ad7bb51b
commit 44a3dad912
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ void PFDGadgetWidget::updateGroundspeed(UAVObject *object) {
\brief Called by updates to @BaroAirspeed
*/
void PFDGadgetWidget::updateAirspeed(UAVObject *object) {
UAVObjectField* airspeedField = object->getField("Airspeed");
UAVObjectField* airspeedField = object->getField("CalibratedAirspeed");
if (airspeedField) {
airspeedTarget = airspeedField->getDouble();

View File

@ -422,7 +422,7 @@ void ScopeGadgetWidget::addCurvePlot(QString uavObject, QString uavFieldSubField
}
UAVObjectField* field = obj->getField(plotData->uavField);
if(!field) {
qDebug() << "Field " << plotData->uavField << " of object " << plotData->uavObject << " is missing";
qDebug() << "In scope gadget, in fields loaded from GCS config file, field" << plotData->uavField << " of object " << plotData->uavObject << " is missing";
return;
}
QString units = field->getUnits();