mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Flight/Actuator: Log the longest update of motors in ms, not ms * 10
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2467 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
0d567f4e4b
commit
8959007a38
@ -216,8 +216,8 @@ static void actuatorTask(void* parameters)
|
|||||||
|
|
||||||
// Store update time
|
// Store update time
|
||||||
command.UpdateTime = 10000*dT;
|
command.UpdateTime = 10000*dT;
|
||||||
if(command.UpdateTime > command.MaxUpdateTime)
|
if(1000*dT > command.MaxUpdateTime)
|
||||||
command.MaxUpdateTime = command.UpdateTime;
|
command.MaxUpdateTime = 1000*dT;
|
||||||
|
|
||||||
// Update output object
|
// Update output object
|
||||||
ActuatorCommandSet(&command);
|
ActuatorCommandSet(&command);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<description>Contains the pulse duration sent to each of the channels. Set by @ref ActuatorModule</description>
|
<description>Contains the pulse duration sent to each of the channels. Set by @ref ActuatorModule</description>
|
||||||
<field name="Channel" units="us" type="int16" elements="8"/>
|
<field name="Channel" units="us" type="int16" elements="8"/>
|
||||||
<field name="UpdateTime" units="ms x 10" type="uint8" elements="1"/>
|
<field name="UpdateTime" units="ms x 10" type="uint8" elements="1"/>
|
||||||
<field name="MaxUpdateTime" units="ms x 10" type="uint8" elements="1"/>
|
<field name="MaxUpdateTime" units="ms" type="uint16" elements="1"/>
|
||||||
<field name="NumFailedUpdates" units="" type="uint8" elements="1"/>
|
<field name="NumFailedUpdates" units="" type="uint8" elements="1"/>
|
||||||
<access gcs="readwrite" flight="readwrite"/>
|
<access gcs="readwrite" flight="readwrite"/>
|
||||||
<telemetrygcs acked="false" updatemode="manual" period="0"/>
|
<telemetrygcs acked="false" updatemode="manual" period="0"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user