fixed Ghost sync feedback

This commit is contained in:
Raphael Coeffic
2020-12-09 07:24:27 +01:00
parent 8247a05438
commit ef3b669d38
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -132,6 +132,19 @@ void processGhostTelemetryFrame()
uint8_t id = telemetryRxBuffer[2];
switch(id) {
case GHST_DL_OPENTX_SYNC:
{
uint32_t update_interval = getTelemetryValue_s32(3);
int32_t offset = getTelemetryValue_s32(7);
// values are in units of 100ns
update_interval /= 10;
offset /= 10;
getModuleSyncStatus(EXTERNAL_MODULE).update(update_interval, offset + SAFE_SYNC_LAG);
}
break;
case GHST_DL_LINK_STAT:
{
#if defined(BLUETOOTH)
+1 -1
View File
@@ -113,7 +113,7 @@ enum GhostTelemetryBaudrates
};
#endif
#define GHOST_BAUDRATE 400000
#define GHOST_PERIOD 4
#define GHOST_PERIOD 4000 /* us */
enum GhostLineFlags
{