Merge branch 'rel-nano-15.05' into corvuscorax/fixedwingautotakeofftest
[librepilot.git] / shared / uavobjectdefinition / flightmodesettings.xml
blobdbe2b72d4fb5f8bf8a60e29dc6943988ae06cf09
1 <xml>
2     <object name="FlightModeSettings" singleinstance="true" settings="true" category="Control">
3         <description>Settings to control arming and flight mode</description>
5         <field name="Arming" units="" type="enum" elements="1" options="Always Disarmed,Always Armed,Roll Left,Roll Right,Pitch Forward,Pitch Aft,Yaw Left,Yaw Right,Accessory 0,Accessory 1,Accessory 2" defaultvalue="Always Disarmed"/>
7         <!-- Note these options should be identical to those in StabilizationDesired.StabilizationMode -->
8         <field name="Stabilization1Settings" units="" type="enum"
9                 elementnames="Roll,Pitch,Yaw,Thrust"
10                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
11                 defaultvalue="Attitude,Attitude,AxisLock,Manual"
12                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
13                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
14                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
15                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
16                         />
17         <field name="Stabilization2Settings" units="" type="enum"
18                 elementnames="Roll,Pitch,Yaw,Thrust"
19                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
20                 defaultvalue="Attitude,Attitude,Rate,Manual"
21                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
22                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
23                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
24                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
25                         />
26         <field name="Stabilization3Settings" units="" type="enum"
27                 elementnames="Roll,Pitch,Yaw,Thrust"
28                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
29                 defaultvalue="Rate,Rate,Rate,Manual"
30                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
31                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
32                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
33                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
34                         />
35         <field name="Stabilization4Settings" units="" type="enum"
36                 elementnames="Roll,Pitch,Yaw,Thrust"
37                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
38                 defaultvalue="Attitude,Attitude,AxisLock,CruiseControl"
39                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
40                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
41                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
42                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
43                         />
44         <field name="Stabilization5Settings" units="" type="enum"
45                 elementnames="Roll,Pitch,Yaw,Thrust"
46                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
47                 defaultvalue="Attitude,Attitude,Rate,CruiseControl"
48                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
49                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
50                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
51                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
52                         />
53         <field name="Stabilization6Settings" units="" type="enum"
54                 elementnames="Roll,Pitch,Yaw,Thrust"
55                 options="Manual,Rate,RateTrainer,Attitude,AxisLock,WeakLeveling,VirtualBar,Acro+,Rattitude,AltitudeHold,AltitudeVario,CruiseControl"
56                 defaultvalue="Rate,Rate,Rate,Manual"
57                 limits="%NE:AltitudeHold:AltitudeVario:CruiseControl; \
58                         %NE:AltitudeHold:AltitudeVario:CruiseControl; \
59                         %NE:RateTrainer:AltitudeHold:AltitudeVario:CruiseControl:Attitude:Rattitude:Acro+:WeakLeveling:VirtualBar; \
60                         %NE:Rate:RateTrainer:Attitude:AxisLock:WeakLeveling:VirtualBar:Acro+:Rattitude;"
61                         />
63         <!-- Note these options values should be identical to those defined in FlightMode -->
64         <!-- Currently only some modes are enabled for UI using limits attribute per board. Update when more modes will be operational -->
65         <field name="FlightModePosition"
66                units=""
67                type="enum"
68                elements="6"
69                options="Manual,Stabilized1,Stabilized2,Stabilized3,Stabilized4,Stabilized5,Stabilized6,PositionHold,CourseLock,VelocityRoam,HomeLeash,AbsolutePosition,ReturnToBase,Land,PathPlanner,POI,AutoCruise,AutoTakeoff"
70                defaultvalue="Stabilized1,Stabilized2,Stabilized3,Stabilized4,Stabilized5,Stabilized6"
71                limits="%NE:POI:AutoCruise; \
72                            %NE:POI:AutoCruise; \
73                            %NE:POI:AutoCruise; \
74                            %NE:POI:AutoCruise; \
75                            %NE:POI:AutoCruise; \
76                            %NE:POI:AutoCruise;" />
78                 <field name="AlwaysStabilizeWhenArmed" units="" type="enum" elements="1" options="FALSE,TRUE" defaultvalue="FALSE" description="For Multirotors. Always stabilize no matter the throttle setting when vehicle is armed. Does not work when vehicle is set to Always Armed."/>
79         <field name="ArmedTimeout" units="ms" type="uint16" elements="1" defaultvalue="30000"/>
80         <field name="ArmingSequenceTime" units="ms" type="uint16" elements="1" defaultvalue="1000"/>
81         <field name="DisarmingSequenceTime" units="ms" type="uint16" elements="1" defaultvalue="1000"/>
82         <field name="DisableSanityChecks" units="" type="enum" elements="1" options="FALSE,TRUE" defaultvalue="FALSE"/>
83         <field name="ReturnToBaseAltitudeOffset" units="m" type="float" elements="1" defaultvalue="10"/>
84         <field name="ReturnToBaseNextCommand" units="" type="enum" elements="1" options="Hold,Land" defaultvalue="Hold"/>
85         <field name="LandingVelocity" units="m" type="float" elements="1" defaultvalue="0.6"/>
86         <field name="AutoTakeOffVelocity" units="m" type="float" elements="1" defaultvalue="0.6"/>
87         <field name="AutoTakeOffHeight" units="m" type="float" elements="1" defaultvalue="2.5" description="height in meters above arming altitude to climb to during autotakeoff"/>
88         <field name="PositionHoldOffset" units="m" type="float" elementnames="Horizontal,Vertical" defaultvalue="30,15" description="stick sensitivity for position roam modes"/>
89         <field name="VarioControlLowPassAlpha" units="" type="float" elements="1" defaultvalue="0.98" description="stick low pass filter for position roam modes"/>
90         <field name="FlightModeChangeRestartsPathPlan" units="bool" type="enum" elements="1" options="FALSE,TRUE" defaultvalue="TRUE"/>
91         <access gcs="readwrite" flight="readwrite"/>
92         <telemetrygcs acked="true" updatemode="onchange" period="0"/>
93         <telemetryflight acked="true" updatemode="onchange" period="0"/>
94         <logging updatemode="manual" period="0"/>
95     </object>
96 </xml>