1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

LP-385 - Get system timestamp coherently with system module

This commit is contained in:
Alessio Morale 2016-08-29 20:35:11 +02:00
parent d000dd63c6
commit b04a3929be
2 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ static void FillActivityInfo()
activity->TriggerMilliSecond = time.MilliSecond;
}
activity->SysTS = PIOS_DELAY_GetuS();
activity->SystemTS = xTaskGetTickCount() * portTICK_RATE_MS;
{
AttitudeStateData attitude;
AttitudeStateGet(&attitude);

View File

@ -16,7 +16,7 @@
<field name="TriggerMilliSecond" units="" type="int16" elements="1"/>
<field name="Activity" units="" type="enum" elements="1" options="Idle,TriggerPicture,StartVideo,StopVideo" default="None"/>
<field name="Reason" units="" type="enum" elements="1" options="Manual,AutoDistance,AutoTime" default="Manual"/>
<field name="SysTS" units="us" type="uint32" elements="1"/>
<field name="SystemTS" units="ms" type="uint32" elements="1"/>
<access gcs="readwrite" flight="readwrite"/>
<telemetrygcs acked="false" updatemode="manual" period="0"/>
<telemetryflight acked="false" updatemode="periodic" period="1000"/>