[Crossfire] Telemetry new fields (GPS / Battery)

I did a refactoring for the latitude and longitude decoding which should be tested carefully for FrSky S.PORT and D telemetry
There was a double conversion in S.PORT protocol, there are less maths now, and perhaps precision will be better
This commit is contained in:
Bertrand Songis
2016-04-26 19:36:48 +02:00
parent 34444aedb2
commit 26e156f9ad
23 changed files with 243 additions and 198 deletions
+5 -1
View File
@@ -21,9 +21,13 @@
#ifndef _CROSSFIRE_H_
#define _CROSSFIRE_H_
// Device address
#define BROADCAST_ADDRESS 0x00
#define LINK_STATS_ID 0x14
// Frame id
#define GPS_ID 0x02
#define BATTERY_ID 0x08
#define LINK_ID 0x14
#define CHANNELS_ID 0x16
void processCrossfireTelemetryData(uint8_t data);