[fix][fixedwing] fix GPS_LLA message

This commit is contained in:
Felix Ruess
2012-09-06 22:24:37 +02:00
parent ae0285d400
commit 69dfe8e6e3
@@ -259,20 +259,20 @@
}
#define PERIODIC_SEND_GPS_LLA(_trans, _dev) { \
uint8_t err = 0; \
int16_t climb = -gps.ned_vel.z; \
int16_t course = (DegOfRad(gps.course)/((int32_t)1e6)); \
DOWNLINK_SEND_GPS_LLA( _trans, _dev, \
&gps.lla_pos.lat, \
&gps.lla_pos.lon, \
&gps.lla_pos.alt, \
&gps.hmsl, \
&course, \
&gps.gspeed, \
&climb, \
&gps.week, \
&gps.tow, \
&gps.fix, \
&gps.fix); \
&err); \
}
#endif