diff --git a/conf/airframes/funjet1.xml b/conf/airframes/funjet1.xml index 14fee29da7..e9f4339205 100644 --- a/conf/airframes/funjet1.xml +++ b/conf/airframes/funjet1.xml @@ -13,6 +13,7 @@ + @@ -144,15 +145,15 @@ - + - + - + @@ -247,7 +248,7 @@ ap.srcs += nav.c fw_h_ctl.c fw_v_ctl.c ap.CFLAGS += -DGYRO -DADXRS150 ap.srcs += gyro.c nav_line.c chemotaxis.c anemotaxis.c discsurvey.c -ap.srcs += traffic_info.c +ap.srcs += traffic_info.c bomb.c # Hack to use the same tuning file than slayer1 diff --git a/conf/airframes/microjet6.xml b/conf/airframes/microjet6.xml index 3e1f0f2371..4fc19cf414 100755 --- a/conf/airframes/microjet6.xml +++ b/conf/airframes/microjet6.xml @@ -98,7 +98,7 @@
- + diff --git a/conf/airframes/minimag1.xml b/conf/airframes/minimag1.xml index 47ea503794..5bea30fd36 100644 --- a/conf/airframes/minimag1.xml +++ b/conf/airframes/minimag1.xml @@ -21,6 +21,7 @@ + @@ -121,7 +122,7 @@ - + @@ -244,8 +245,8 @@ ap.srcs += nav.c fw_h_ctl.c fw_v_ctl.c # ap.CFLAGS += -DGYRO -DADXRS150 # ap.srcs += gyro.c -# ap.srcs += bomb.c ap.srcs += traffic_info.c +ap.srcs += bomb.c # Hack to use the same tuning file than slayer1 ap.CFLAGS += -DUSE_GPIO @@ -261,7 +262,7 @@ ap.srcs += $(SRC_ARCH)/gpio.c include $(PAPARAZZI_SRC)/conf/autopilot/sitl.makefile sim.CFLAGS += -DCONFIG=\"tiny.h\" -DAGR_CLIMB -DH_CTL_RATE_LOOP -DLOITER_TRIM -DALT_KALMAN -DIR_360 sim.srcs += traffic_info.c -# sim.srcs += bomb.c +sim.srcs += bomb.c diff --git a/conf/airframes/twinjet1.xml b/conf/airframes/twinjet1.xml index cd426357a8..10e90e639e 100644 --- a/conf/airframes/twinjet1.xml +++ b/conf/airframes/twinjet1.xml @@ -157,7 +157,7 @@ - + diff --git a/conf/flight_plans/IS.xml b/conf/flight_plans/IS.xml index cdb54c91b6..052d2eb499 100644 --- a/conf/flight_plans/IS.xml +++ b/conf/flight_plans/IS.xml @@ -10,10 +10,10 @@ - + - + @@ -42,27 +42,27 @@ --> - - + + - + - + - + - + @@ -89,9 +89,11 @@ + @@ -166,8 +168,12 @@ + + + diff --git a/conf/flight_plans/versatile.xml b/conf/flight_plans/versatile.xml index 620006fc4c..14971d549e 100644 --- a/conf/flight_plans/versatile.xml +++ b/conf/flight_plans/versatile.xml @@ -11,6 +11,15 @@ + + + + + + + + + @@ -85,6 +94,28 @@ + + + + + + + + + + + + + + + + + + + diff --git a/conf/settings/settings.dtd b/conf/settings/settings.dtd index 0e8c0e0cc0..38b66b7df8 100644 --- a/conf/settings/settings.dtd +++ b/conf/settings/settings.dtd @@ -33,6 +33,6 @@ handler CDATA #IMPLIED diff --git a/conf/settings/tuning.xml b/conf/settings/tuning.xml index decedd4b33..c2bbaa5d6b 100644 --- a/conf/settings/tuning.xml +++ b/conf/settings/tuning.xml @@ -53,10 +53,10 @@ - + - - + + diff --git a/sw/airborne/datalink.c b/sw/airborne/datalink.c index 32d0f49d31..e003015cb2 100644 --- a/sw/airborne/datalink.c +++ b/sw/airborne/datalink.c @@ -110,9 +110,9 @@ void dl_parse_msg(void) { #ifdef DlSetting else if (msg_id == DL_SETTING) { uint8_t i = DL_SETTING_index(dl_buffer); - float var = DL_SETTING_value(dl_buffer); - DlSetting(i, var); - DOWNLINK_SEND_DL_VALUE(&i, &var); + float val = DL_SETTING_value(dl_buffer); + DlSetting(i, val); + DOWNLINK_SEND_DL_VALUE(&i, &val); } #endif /** Else there is no dl_settings section in the flight plan */ } diff --git a/sw/airborne/fw_v_ctl.h b/sw/airborne/fw_v_ctl.h index d8f3950723..5d3919ba77 100644 --- a/sw/airborne/fw_v_ctl.h +++ b/sw/airborne/fw_v_ctl.h @@ -89,4 +89,9 @@ extern void v_ctl_climb_loop ( void ); /** Computes throttle_slewed from throttle_setpoint */ extern void v_ctl_throttle_slew( void ); +#define fw_v_ctl_SetCruiseThrottle(_v) { \ + v_ctl_auto_throttle_cruise_throttle = (_v ? _v : v_ctl_auto_throttle_nominal_cruise_throttle); \ + Bound(v_ctl_auto_throttle_cruise_throttle, V_CTL_AUTO_THROTTLE_MIN_CRUISE_THROTTLE, V_CTL_AUTO_THROTTLE_MAX_CRUISE_THROTTLE); \ +} + #endif /* FW_V_CTL_H */ diff --git a/sw/tools/gen_settings.ml b/sw/tools/gen_settings.ml index bbaa50ddcd..b697c0be33 100644 --- a/sw/tools/gen_settings.ml +++ b/sw/tools/gen_settings.ml @@ -81,7 +81,7 @@ let print_dl_settings = fun settings -> try let h = ExtXml.attrib s "handler" and m = ExtXml.attrib s "module" in - lprintf "case %d: %s_%s( _value ); break;\\\n" !idx m h + lprintf "case %d: %s_%s( _value ); _value = %s; break;\\\n" !idx m h v with ExtXml.Error e -> lprintf "case %d: %s = _value; break;\\\n" !idx v end;