mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-10 18:24:11 +01:00
5784ea8b36
Actuator did not provide an option to completely shutdown selected channels (set PWM pulse = 0). It is useful for camera stabilization boot delay (we want few seconds of gimbal servo inactivity to calibrate gyros). It also might be useful for failsafe on some channels. This option is now available. It is used to disable camera outputs during fixed 7s delay after boot instead of setting them to minimum position. As a side effect, few bugs are fixed (ticks should be multiplied by portTICK_RATE_MS, not divided, to get time in ms). And few floating point operations were optimized out as well. ActuatorCommand.UpdateTime was promoted to uint16 because it is not unusual to have it 20000ms during flash updates (was seen on the CC after UAV settings import). So it should be 16bit as well.
14 lines
780 B
XML
14 lines
780 B
XML
<xml>
|
|
<object name="ActuatorCommand" singleinstance="true" settings="false">
|
|
<description>Contains the pulse duration sent to each of the channels. Set by @ref ActuatorModule</description>
|
|
<field name="Channel" units="us" type="int16" elements="10"/>
|
|
<field name="UpdateTime" units="ms" type="uint16" elements="1"/>
|
|
<field name="MaxUpdateTime" units="ms" type="uint16" elements="1"/>
|
|
<field name="NumFailedUpdates" units="" type="uint8" elements="1"/>
|
|
<access gcs="readwrite" flight="readwrite"/>
|
|
<telemetrygcs acked="false" updatemode="manual" period="0"/>
|
|
<telemetryflight acked="false" updatemode="periodic" period="1000"/>
|
|
<logging updatemode="manual" period="0"/>
|
|
</object>
|
|
</xml>
|