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,51 +13,14 @@
<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>
<widget class="QLabel" name="label_6">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property> </property>
<property name="text"> <layout class="QGridLayout" name="gridLayout">
<string>Attitude Rotation</string> <item row="0" column="0">
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<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>
<widget class="QLabel" name="label_5">
<property name="text">
<string> Select the amount to rotate the attitude</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>Roll</string> <string>Roll</string>
@ -67,7 +30,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<widget class="QSpinBox" name="rollBias"> <widget class="QSpinBox" name="rollBias">
<property name="minimum"> <property name="minimum">
<number>-180</number> <number>-180</number>
@ -77,11 +40,7 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="0" column="1">
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Pitch</string> <string>Pitch</string>
@ -91,7 +50,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<widget class="QSpinBox" name="pitchBias"> <widget class="QSpinBox" name="pitchBias">
<property name="minimum"> <property name="minimum">
<number>-90</number> <number>-90</number>
@ -101,11 +60,7 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="0" column="2">
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Yaw</string> <string>Yaw</string>
@ -115,7 +70,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="2">
<widget class="QSpinBox" name="yawBias"> <widget class="QSpinBox" name="yawBias">
<property name="minimum"> <property name="minimum">
<number>-180</number> <number>-180</number>
@ -126,102 +81,31 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Attitude Calibration</string>
</property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<spacer name="horizontalSpacer_6"> <widget class="QGroupBox" name="groupBox_2">
<property name="orientation"> <property name="title">
<enum>Qt::Horizontal</enum> <string>Calibration</string>
</property> </property>
<property name="sizeHint" stdset="0"> <layout class="QVBoxLayout" name="verticalLayout_2">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Place aircraft flat before computing</string> <string>Place aircraft very flat, and then click level to compute the accelerometer and gyro bias</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</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> <item>
<widget class="QPushButton" name="zeroBias"> <widget class="QPushButton" name="zeroBias">
<property name="toolTip"> <property name="toolTip">
<string>Launch horizontal calibration.</string> <string>Launch horizontal calibration.</string>
</property> </property>
<property name="text"> <property name="text">
<string>Zero Accel Bias</string> <string>Level</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -232,12 +116,22 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
</layout>
</item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_4"> <spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QCheckBox" name="zeroGyroBiasOnArming"> <widget class="QCheckBox" name="zeroGyroBiasOnArming">
<property name="toolTip"> <property name="toolTip">
@ -246,26 +140,14 @@ 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>
<spacer name="horizontalSpacer_4">
<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> </layout>
</widget>
</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">