1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Group calibration items in UI as well

This commit is contained in:
James Cotton 2011-07-16 11:16:47 -05:00
parent 8f53ed2fc4
commit 7081bb926b

View File

@ -13,259 +13,141 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QGridLayout" name="gridLayout_2">
<item> <item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_8"> <widget class="QGroupBox" name="groupBox">
<item> <property name="title">
<layout class="QHBoxLayout" name="horizontalLayout_7"> <string>Rotate virtual attitude relative to board</string>
<item> </property>
<widget class="QLabel" name="label_6"> <layout class="QGridLayout" name="gridLayout">
<property name="font"> <item row="0" column="0">
<font> <widget class="QLabel" name="label_2">
<weight>75</weight> <property name="text">
<bold>true</bold> <string>Roll</string>
</font> </property>
</property> <property name="alignment">
<property name="text"> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<string>Attitude Rotation</string> </property>
</property> </widget>
</widget> </item>
</item> <item row="1" column="0">
<item> <widget class="QSpinBox" name="rollBias">
<spacer name="horizontalSpacer_5"> <property name="minimum">
<property name="orientation"> <number>-180</number>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="maximum">
<property name="sizeHint" stdset="0"> <number>180</number>
<size> </property>
<width>40</width> </widget>
<height>20</height> </item>
</size> <item row="0" column="1">
</property> <widget class="QLabel" name="label_3">
</spacer> <property name="text">
</item> <string>Pitch</string>
</layout> </property>
</item> <property name="alignment">
<item> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<widget class="QLabel" name="label_5"> </property>
<property name="text"> </widget>
<string> Select the amount to rotate the attitude</string> </item>
</property> <item row="1" column="1">
</widget> <widget class="QSpinBox" name="pitchBias">
</item> <property name="minimum">
<item> <number>-90</number>
<layout class="QHBoxLayout" name="horizontalLayout_8"> </property>
<item> <property name="maximum">
<layout class="QVBoxLayout" name="verticalLayout_11"> <number>90</number>
<item> </property>
<widget class="QLabel" name="label_2"> </widget>
<property name="text"> </item>
<string>Roll</string> <item row="0" column="2">
</property> <widget class="QLabel" name="label_4">
<property name="alignment"> <property name="text">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> <string>Yaw</string>
</property> </property>
</widget> <property name="alignment">
</item> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<item> </property>
<widget class="QSpinBox" name="rollBias"> </widget>
<property name="minimum"> </item>
<number>-180</number> <item row="1" column="2">
</property> <widget class="QSpinBox" name="yawBias">
<property name="maximum"> <property name="minimum">
<number>180</number> <number>-180</number>
</property> </property>
</widget> <property name="maximum">
</item> <number>180</number>
</layout> </property>
</item> </widget>
<item> </item>
<layout class="QVBoxLayout" name="verticalLayout_10"> </layout>
<item> </widget>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Pitch</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="pitchBias">
<property name="minimum">
<number>-90</number>
</property>
<property name="maximum">
<number>90</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Yaw</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="yawBias">
<property name="minimum">
<number>-180</number>
</property>
<property name="maximum">
<number>180</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item row="1" column="0">
<layout class="QVBoxLayout" name="verticalLayout_7"> <widget class="QGroupBox" name="groupBox_2">
<item> <property name="title">
<layout class="QHBoxLayout" name="horizontalLayout_6"> <string>Calibration</string>
<item> </property>
<widget class="QLabel" name="label_7"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="font"> <item>
<font> <widget class="QLabel" name="label">
<weight>75</weight> <property name="text">
<bold>true</bold> <string>Place aircraft very flat, and then click level to compute the accelerometer and gyro bias</string>
</font> </property>
</property> <property name="wordWrap">
<property name="text"> <bool>true</bool>
<string>Attitude Calibration</string> </property>
</property> </widget>
</widget> </item>
</item> <item>
<item> <widget class="QPushButton" name="zeroBias">
<spacer name="horizontalSpacer_6"> <property name="toolTip">
<property name="orientation"> <string>Launch horizontal calibration.</string>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="text">
<property name="sizeHint" stdset="0"> <string>Level</string>
<size> </property>
<width>40</width> </widget>
<height>20</height> </item>
</size> <item>
</property> <widget class="QProgressBar" name="zeroBiasProgress">
</spacer> <property name="value">
</item> <number>0</number>
</layout> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label"> <item>
<property name="text"> <spacer name="verticalSpacer">
<string>Place aircraft flat before computing</string> <property name="orientation">
</property> <enum>Qt::Vertical</enum>
</widget> </property>
</item> <property name="sizeType">
<item> <enum>QSizePolicy::Fixed</enum>
<layout class="QHBoxLayout" name="horizontalLayout_3"> </property>
<item> <property name="sizeHint" stdset="0">
<spacer name="horizontalSpacer_3"> <size>
<property name="orientation"> <width>0</width>
<enum>Qt::Horizontal</enum> <height>10</height>
</property> </size>
<property name="sizeHint" stdset="0"> </property>
<size> </spacer>
<width>40</width> </item>
<height>20</height> <item>
</size> <widget class="QCheckBox" name="zeroGyroBiasOnArming">
</property> <property name="toolTip">
</spacer> <string>If enabled, a fast recalibration of gyro zero point will be done
</item>
<item>
<widget class="QLabel" name="status">
<property name="text">
<string>Click &quot;Zero Accel Bias&quot; to start</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="margin">
<number>4</number>
</property>
<item>
<widget class="QPushButton" name="zeroBias">
<property name="toolTip">
<string>Launch horizontal calibration.</string>
</property>
<property name="text">
<string>Zero Accel Bias</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="zeroBiasProgress">
<property name="value">
<number>0</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QCheckBox" name="zeroGyroBiasOnArming">
<property name="toolTip">
<string>If enabled, a fast recalibration of gyro zero point will be done
whenever the frame is armed. Do not move the airframe while whenever the frame is armed. Do not move the airframe while
arming it in that case!</string> arming it in that case!</string>
</property> </property>
<property name="text"> <property name="text">
<string>Zero gyro bias upon airframe arming</string> <string>Zero gyros while arming aircraft</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> </layout>
<spacer name="horizontalSpacer_4"> </widget>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item> </item>
<item> <item row="2" column="0">
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -278,7 +160,7 @@ arming it in that case!</string>
</property> </property>
</spacer> </spacer>
</item> </item>
<item> <item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">