mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
[fix][fixedwing] fix GPS_LLA message
This commit is contained in:
@@ -259,20 +259,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define PERIODIC_SEND_GPS_LLA(_trans, _dev) { \
|
#define PERIODIC_SEND_GPS_LLA(_trans, _dev) { \
|
||||||
|
uint8_t err = 0; \
|
||||||
int16_t climb = -gps.ned_vel.z; \
|
int16_t climb = -gps.ned_vel.z; \
|
||||||
int16_t course = (DegOfRad(gps.course)/((int32_t)1e6)); \
|
int16_t course = (DegOfRad(gps.course)/((int32_t)1e6)); \
|
||||||
DOWNLINK_SEND_GPS_LLA( _trans, _dev, \
|
DOWNLINK_SEND_GPS_LLA( _trans, _dev, \
|
||||||
&gps.lla_pos.lat, \
|
&gps.lla_pos.lat, \
|
||||||
&gps.lla_pos.lon, \
|
&gps.lla_pos.lon, \
|
||||||
&gps.lla_pos.alt, \
|
&gps.lla_pos.alt, \
|
||||||
&gps.hmsl, \
|
|
||||||
&course, \
|
&course, \
|
||||||
&gps.gspeed, \
|
&gps.gspeed, \
|
||||||
&climb, \
|
&climb, \
|
||||||
&gps.week, \
|
&gps.week, \
|
||||||
&gps.tow, \
|
&gps.tow, \
|
||||||
&gps.fix, \
|
&gps.fix, \
|
||||||
&gps.fix); \
|
&err); \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user