mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Add the number of dropped updates to the overosync stats
This commit is contained in:
parent
a89d425b23
commit
221a0c5e53
@ -33,6 +33,7 @@
|
||||
#include "openpilot.h"
|
||||
#include "overosync.h"
|
||||
#include "overosyncstats.h"
|
||||
#include "systemstats.h"
|
||||
|
||||
// Private constants
|
||||
#define OVEROSYNC_PACKET_SIZE 256
|
||||
@ -197,7 +198,9 @@ static void overoSyncTask(void *parameters)
|
||||
syncStats.Send = overosync->sent_bytes;
|
||||
syncStats.Received = 0;
|
||||
syncStats.Connected = syncStats.Send > 500 ? OVEROSYNCSTATS_CONNECTED_TRUE : OVEROSYNCSTATS_CONNECTED_FALSE;
|
||||
syncStats.DroppedUpdates = overosync->failed_objects;
|
||||
OveroSyncStatsSet(&syncStats);
|
||||
overosync->failed_objects = 0;
|
||||
overosync->sent_bytes = 0;
|
||||
lastUpdateTime = updateTime;
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
<field name="Connected" units="" type="enum" options="False,True" elements="1" default="False"/>
|
||||
<field name="Send" units="B/s" type="uint32" elements="1"/>
|
||||
<field name="Received" units="B/s" type="uint32" elements="1"/>
|
||||
<field name="DroppedUpdates" units="" 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