mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 09:58:23 +08:00
[fix][fixedwing] fix GPS_LLA message
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user