1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-212 forgot to lower camel case GpsTime

This commit is contained in:
Cliff Geerdes 2016-02-11 01:02:03 -05:00
parent baeb379a82
commit 2826cb5cd7

View File

@ -284,21 +284,21 @@ static void parse_dji_gps(struct DJIPacket *dji, GPSPositionSensorData *gpsPosit
GPSPositionSensorSet(gpsPosition); GPSPositionSensorSet(gpsPosition);
// Time is valid, set GpsTime // Time is valid, set GpsTime
GPSTimeData GpsTime; GPSTimeData gpsTime;
// the lowest bit of day and the highest bit of hour overlap (xored? no, stranger than that) // the lowest bit of day and the highest bit of hour overlap (xored? no stranger than that)
// this causes strange day/hour changes // this causes strange day/hour changes
// we could track it here and even if we guess wrong initially // we could track it here and even if we guess wrong initially
// we can massage the data so that time doesn't jump // we can massage the data so that time doesn't jump
// and maybe make the assumption that most people will fly at 5pm, not 1am // and maybe make the assumption that most people will fly at 5pm, not 1am
// this is part of the DJI protocol // this is part of the DJI protocol
// see DJI.h for further info // see DJI.h for further info
GpsTime.Year = (int16_t)djiGps->year + 2000; gpsTime.Year = (int16_t)djiGps->year + 2000;
GpsTime.Month = djiGps->month; gpsTime.Month = djiGps->month;
GpsTime.Day = djiGps->day; gpsTime.Day = djiGps->day;
GpsTime.Hour = djiGps->hour; gpsTime.Hour = djiGps->hour;
GpsTime.Minute = djiGps->min; gpsTime.Minute = djiGps->min;
GpsTime.Second = djiGps->sec; gpsTime.Second = djiGps->sec;
GPSTimeSet(&GpsTime); GPSTimeSet(&gpsTime);
} }