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

OP-1005 Fixes velocity units in PFD and PFDQml widgets.

This commit is contained in:
Fredrik Arvidsson 2013-06-17 07:43:56 +02:00
parent b221c7bfea
commit d28609349f
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import Qt 4.7
Item {
id: sceneItem
property variant sceneSize
property real groundSpeed : 3.6 * Math.sqrt(Math.pow(VelocityActual.North,2)+
property real groundSpeed : Math.sqrt(Math.pow(VelocityActual.North,2)+
Math.pow(VelocityActual.East,2))
SvgElementImage {

View File

@ -328,7 +328,7 @@ void PFDGadgetWidget::updateGroundspeed(UAVObject *object)
if (northField && eastField) {
double val = floor(sqrt(pow(northField->getDouble(), 2) + pow(eastField->getDouble(), 2)) * 10) / 10;
groundspeedTarget = 3.6 * val * speedScaleHeight / 30;
groundspeedTarget = val * speedScaleHeight / 30;
if (!dialTimer.isActive()) {
dialTimer.start(); // Rearm the dial Timer which might be stopped.