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:
parent
a0ad7bb51b
commit
44a3dad912
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user