1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-19 09:54:15 +01:00

Get rid of ms * 10 units since the time resolution of FreeRTOS is in ms

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2665 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2011-02-01 02:18:22 +00:00 committed by peabody124
parent 3f088bed8d
commit 15f3ada700
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ static void actuatorTask(void* parameters)
MixerStatusSet(&mixerStatus);
// Store update time
command.UpdateTime = 10000*dT;
command.UpdateTime = 1000*dT;
if(1000*dT > command.MaxUpdateTime)
command.MaxUpdateTime = 1000*dT;

View File

@ -2,7 +2,7 @@
<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="8"/>
<field name="UpdateTime" units="ms x 10" type="uint8" elements="1"/>
<field name="UpdateTime" units="ms" type="uint8" elements="1"/>
<field name="MaxUpdateTime" units="ms" type="uint16" elements="1"/>
<field name="NumFailedUpdates" units="" type="uint8" elements="1"/>
<access gcs="readwrite" flight="readwrite"/>