diff --git a/conf/messages.xml b/conf/messages.xml
index 8ed75686cb..d410a9f22e 100644
--- a/conf/messages.xml
+++ b/conf/messages.xml
@@ -322,6 +322,15 @@
+
+
+
+
+
+
+
+
+
@@ -366,6 +375,11 @@
+
+
+
+
+
@@ -526,6 +540,11 @@
+
+
+
+
+
@@ -550,12 +569,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -597,6 +616,16 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/conf/ubx.xml b/conf/ubx.xml
index eaa6053c5b..6c4dfe9243 100644
--- a/conf/ubx.xml
+++ b/conf/ubx.xml
@@ -205,4 +205,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sw/airborne/fw_v_ctl.c b/sw/airborne/fw_v_ctl.c
index 01333efb15..441ee141ca 100644
--- a/sw/airborne/fw_v_ctl.c
+++ b/sw/airborne/fw_v_ctl.c
@@ -336,6 +336,7 @@ inline static void v_ctl_climb_auto_throttle_loop(void) {
controlled_throttle = (err_airspeed + v_ctl_auto_airspeed_sum_err * v_ctl_auto_airspeed_igain) * v_ctl_auto_airspeed_pgain;
// Done, set outputs
+ Bound(controlled_throttle, 0, V_CTL_AUTO_THROTTLE_MAX_CRUISE_THROTTLE);
f_throttle = controlled_throttle;
nav_pitch = v_ctl_pitch_of_vz;
v_ctl_throttle_setpoint = TRIM_UPPRZ(f_throttle * MAX_PPRZ);
diff --git a/sw/airborne/main_ap.c b/sw/airborne/main_ap.c
index 8599969ea2..76ffecfe51 100644
--- a/sw/airborne/main_ap.c
+++ b/sw/airborne/main_ap.c
@@ -69,7 +69,7 @@
#include "adc_generic.h"
#endif
-#ifdef USE_AIRSPEED
+#if defined USE_AIRSPEED || defined MEASURE_AIRSPEED
#include "airspeed.h"
#endif
@@ -147,9 +147,6 @@
#include "osam_imu_ugear.h"
#endif
-#ifdef XSENS
-#include "xsens_ins.h"
-#endif
/*code added by Haiyang Chao ends*/
#if ! defined CATASTROPHIC_BAT_LEVEL && defined LOW_BATTERY
@@ -659,7 +656,8 @@ void periodic_task_ap( void ) {
#if defined GYRO
gyro_update();
#endif
-#if defined USE_AIRSPEED
+
+#if defined USE_AIRSPEED || defined MEASURE_AIRSPEED
airspeed_update();
#endif
#ifdef INFRARED
@@ -711,7 +709,7 @@ void init_ap( void ) {
#ifdef GYRO
gyro_init();
#endif
-#ifdef USE_AIRSPEED
+#if defined USE_AIRSPEED || defined MEASURE_AIRSPEED
airspeed_init();
#endif
#ifdef GPS
@@ -913,6 +911,9 @@ void event_task_ap( void ) {
gps_verbose_downlink = !launch;
UseGpsPosNoSend(estimator_update_state_gps);
gps_downlink();
+#ifdef GPS_TRIGGERED_FUNCTION
+ GPS_TRIGGERED_FUNCTION();
+#endif
gps_pos_available = FALSE;
}
}