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:
parent
d000dd63c6
commit
b04a3929be
@ -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);
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user