1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Corrected typo in the minimum value settings.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@676 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-05-28 09:04:03 +00:00 committed by edouard
parent 9e76bcca1b
commit b246079a35
2 changed files with 3 additions and 3 deletions

View File

@ -212,11 +212,11 @@ void AirspeedGadgetWidget::resizeEvent(QResizeEvent *event)
// Converts the value into an angle:
// this enables smooth rotation in rotateNeedles below
void AirspeedGadgetWidget::setNeedle1(double value) {
needle1Target = 360*value/n1MaxValue;
needle1Target = 360*value/(n1MaxValue-n1MinValue);
}
void AirspeedGadgetWidget::setNeedle2(double value) {
needle2Target = 360*value/n2MaxValue;
needle2Target = 360*value/(n2MaxValue-n2MinValue);
}

View File

@ -54,7 +54,7 @@ public:
void setNeedle2(double value);
void setN1Min(double value) {n1MinValue = value;}
void setN1Max(double value) {n1MaxValue = value;}
void setN2Min(double value) {n1MinValue = value;}
void setN2Min(double value) {n2MinValue = value;}
void setN2Max(double value) {n2MaxValue = value;}
// Sets up needle/UAVObject connections:
void connectNeedles(QString object1, QString field1,