mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-04-08 00:53:48 +02:00
Bugfix (division by zero error if Maxvalue=0...). Rotation code can/should be improved, but still, it's a start.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@571 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
61804f91dd
commit
7ce98b0bf5
@ -39,9 +39,9 @@ AirspeedGadgetConfiguration::AirspeedGadgetConfiguration(QString classId, const
|
|||||||
dialForegroundID("foreground"),
|
dialForegroundID("foreground"),
|
||||||
dialNeedleID1("needle"),
|
dialNeedleID1("needle"),
|
||||||
dialNeedleID2("needle-2"),
|
dialNeedleID2("needle-2"),
|
||||||
needle1MinValue(0),
|
needle1MinValue(0.001),
|
||||||
needle1MaxValue(100),
|
needle1MaxValue(100),
|
||||||
needle2MinValue(0),
|
needle2MinValue(0.001),
|
||||||
needle2MaxValue(100)
|
needle2MaxValue(100)
|
||||||
{
|
{
|
||||||
//if a saved configuration exists load it
|
//if a saved configuration exists load it
|
||||||
|
@ -164,6 +164,9 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="decimals">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<double>100000.000000000000000</double>
|
<double>100000.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
@ -184,6 +187,12 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="decimals">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<double>0.001000000000000</double>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<double>100000.000000000000000</double>
|
<double>100000.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
@ -279,6 +288,9 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="decimals">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<double>100000.000000000000000</double>
|
<double>100000.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
@ -299,6 +311,12 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="decimals">
|
||||||
|
<number>3</number>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<double>0.001000000000000</double>
|
||||||
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<double>100000.000000000000000</double>
|
<double>100000.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user