diff --git a/src/ui/uas/UASQuickView.cc b/src/ui/uas/UASQuickView.cc index 1054a3e40fb2a03cf7f5919873b3ac60d82496a6..00183a96d760d0321cfb535c86d15eb5687e52c3 100644 --- a/src/ui/uas/UASQuickView.cc +++ b/src/ui/uas/UASQuickView.cc @@ -32,7 +32,7 @@ UASQuickView::UASQuickView(QWidget *parent) : QWidget(parent) valueEnabled("altitudeAMSL"); valueEnabled("altitudeRelative"); valueEnabled("groundSpeed"); - valueEnabled("distToWP"); + valueEnabled("distToWaypoint"); } QAction *action = new QAction("Add/Remove Items",this); diff --git a/src/ui/uas/UASQuickViewTextItem.cc b/src/ui/uas/UASQuickViewTextItem.cc index f55dff6a15fc9c671b3959f406d19d6e463dd52f..5dc09592903177487ab8830b105dcc2cd04d1e27 100644 --- a/src/ui/uas/UASQuickViewTextItem.cc +++ b/src/ui/uas/UASQuickViewTextItem.cc @@ -51,7 +51,7 @@ void UASQuickViewTextItem::setValue(double value) { valueLabel->setText(QString::number(value,'f',1)); } - else if (value >= 100000 || value <= -100000) + else { valueLabel->setText(QString::number(value,'f',0)); }