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:
parent
b221c7bfea
commit
d28609349f
@ -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 {
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user