diff --git a/sw/airborne/firmwares/fixedwing/ap_downlink.h b/sw/airborne/firmwares/fixedwing/ap_downlink.h index a8cdeb4cd3..33df537f54 100644 --- a/sw/airborne/firmwares/fixedwing/ap_downlink.h +++ b/sw/airborne/firmwares/fixedwing/ap_downlink.h @@ -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