Skip to content

Commit a471bbd

Browse files
committed
Fix type and limits of Pitch/Roll Axis Fault Cutoff
Store as uint8 and set more sensible limits of 45-90 degrees. Fix: Set more sensible limits of 45-90° for Pitch and Roll Axis Fault Cutoffs
1 parent 540fc78 commit a471bbd

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

src/conf/settings.xml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -247,47 +247,43 @@ p, li { white-space: pre-wrap; }
247247
</hertz>
248248
<fault_pitch>
249249
<longName>Pitch Axis Fault Cutoff</longName>
250-
<type>1</type>
250+
<type>2</type>
251251
<transmittable>1</transmittable>
252252
<description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
253253
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
254254
p, li { white-space: pre-wrap; }
255255
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Roboto'; ; font-weight:400; font-style:normal;&quot;&gt;
256256
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Pitch Angle at which a fault is triggered and the board is disengaged. Can help potentially cut-off a runaway board with a stuck sensor (a.k.a &amp;quot;Ghosting&amp;quot;).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</description>
257257
<cDefine>CFG_DFLT_FAULT_PITCH</cDefine>
258-
<editorDecimalsDouble>1</editorDecimalsDouble>
259258
<editorScale>1</editorScale>
260259
<editAsPercentage>0</editAsPercentage>
261-
<maxDouble>180</maxDouble>
262-
<minDouble>-180</minDouble>
260+
<maxInt>90</maxInt>
261+
<minInt>45</minInt>
263262
<showDisplay>0</showDisplay>
264-
<stepDouble>1</stepDouble>
265-
<valDouble>60</valDouble>
266-
<vTxDoubleScale>10</vTxDoubleScale>
263+
<stepInt>5</stepInt>
264+
<valInt>60</valInt>
267265
<suffix> °</suffix>
268-
<vTx>7</vTx>
266+
<vTx>1</vTx>
269267
</fault_pitch>
270268
<fault_roll>
271269
<longName>Roll Axis Fault Cutoff</longName>
272-
<type>1</type>
270+
<type>2</type>
273271
<transmittable>1</transmittable>
274272
<description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
275273
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
276274
p, li { white-space: pre-wrap; }
277275
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Roboto'; ; font-weight:400; font-style:normal;&quot;&gt;
278276
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Roll Angle at which a fault is triggered and the board is disengaged. Can help potentially cut-off a runaway board with a stuck sensor (a.k.a &amp;quot;Ghosting&amp;quot;).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</description>
279277
<cDefine>CFG_DFLT_FAULT_ROLL</cDefine>
280-
<editorDecimalsDouble>1</editorDecimalsDouble>
281278
<editorScale>1</editorScale>
282279
<editAsPercentage>0</editAsPercentage>
283-
<maxDouble>180</maxDouble>
284-
<minDouble>-180</minDouble>
280+
<maxInt>90</maxInt>
281+
<minInt>45</minInt>
285282
<showDisplay>0</showDisplay>
286-
<stepDouble>1</stepDouble>
287-
<valDouble>60</valDouble>
288-
<vTxDoubleScale>10</vTxDoubleScale>
283+
<stepInt>5</stepInt>
284+
<valInt>60</valInt>
289285
<suffix> °</suffix>
290-
<vTx>7</vTx>
286+
<vTx>1</vTx>
291287
</fault_roll>
292288
<fault_adc1>
293289
<longName>ADC1 Switch Voltage</longName>

0 commit comments

Comments
 (0)