diff --git a/Makefile b/Makefile index da30000ff8..72a1857a58 100644 --- a/Makefile +++ b/Makefile @@ -311,6 +311,14 @@ test_coverity: all # test AggieAir conf test_aggieair: all CONF_XML=conf/airframes/AGGIEAIR/aggieair_conf.xml prove tests/aircrafts/ + +# test Open UAS conf +test_openuas: all + CONF_XML=conf/userconf/OPENUAS/openuas_conf.xml prove tests/aircrafts/ + +# test TU Delft conf +test_tudelft: all + CONF_XML=conf/userconf/TUDELFT/tudelft_flyable_conf.xml prove tests/aircrafts/ # compiles all aircrafts in conf_tests.xml test_examples: all diff --git a/conf/airframes/OPENUAS/openuas_moksha.xml b/conf/airframes/OPENUAS/openuas_moksha.xml index 00a06f20bb..8c43cd554f 100644 --- a/conf/airframes/OPENUAS/openuas_moksha.xml +++ b/conf/airframes/OPENUAS/openuas_moksha.xml @@ -117,8 +117,16 @@ make -C $PAPARAZZI_HOME -f Makefile.ac AIRCRAFT=Moksha ap.compile - + + + + + + + + + + + @@ -70,6 +75,17 @@ --> + + + + + + + + + + + @@ -366,6 +382,11 @@ If not set before when you would enter home mode you had to flip a bit via the G + +
+ + +
diff --git a/conf/flight_plans/OPENUAS/include_obc2014_mission.xml b/conf/flight_plans/OPENUAS/include_obc2014_mission.xml index 9d596af681..57560201aa 100644 --- a/conf/flight_plans/OPENUAS/include_obc2014_mission.xml +++ b/conf/flight_plans/OPENUAS/include_obc2014_mission.xml @@ -151,7 +151,7 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9" - + @@ -267,8 +267,8 @@ TST-3 = -26° 35' 23.2" * 151° 50' 45.9" - - + + diff --git a/conf/flight_plans/OPENUAS/openuas_nav_modules_test.xml b/conf/flight_plans/OPENUAS/openuas_nav_modules_test.xml index 5dca244ae1..8edaca7bc3 100644 --- a/conf/flight_plans/OPENUAS/openuas_nav_modules_test.xml +++ b/conf/flight_plans/OPENUAS/openuas_nav_modules_test.xml @@ -37,7 +37,7 @@ - + @@ -45,13 +45,13 @@ - + - - + + diff --git a/conf/flight_plans/OPENUAS/openuas_rotorcraft_simple.xml b/conf/flight_plans/OPENUAS/openuas_rotorcraft_simple.xml index 80d98fbd75..61ccc10e2e 100644 --- a/conf/flight_plans/OPENUAS/openuas_rotorcraft_simple.xml +++ b/conf/flight_plans/OPENUAS/openuas_rotorcraft_simple.xml @@ -11,7 +11,6 @@ Your safe aircraft operation is *your* responsibility
- //Set Generic options #include "autopilot.h" //Enable AHRS Health test functions @@ -21,7 +20,6 @@ Your safe aircraft operation is *your* responsibility //Enable datalink tests #include "subsystems/datalink/datalink.h" #include "firmwares/rotorcraft/guidance/guidance_v.h" -
@@ -38,7 +36,7 @@ Your safe aircraft operation is *your* responsibility - + @@ -90,7 +88,7 @@ Altough Switching the mode to auto2/NAV from any other mode will reset nav_headi - + diff --git a/conf/flight_plans/OPENUAS/openuas_tuning_a_fresh_fixedwing.xml b/conf/flight_plans/OPENUAS/openuas_tuning_a_fresh_fixedwing.xml index ec46b96794..24bb580056 100644 --- a/conf/flight_plans/OPENUAS/openuas_tuning_a_fresh_fixedwing.xml +++ b/conf/flight_plans/OPENUAS/openuas_tuning_a_fresh_fixedwing.xml @@ -137,8 +137,8 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a
-#include "subsystems/navigation/nav_line.h" -#include "datalink.h" +#include "subsystems/datalink/datalink.h" +#include "state.h"
@@ -173,9 +173,10 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a
- + - + + @@ -214,7 +215,7 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a - + @@ -243,7 +244,7 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a
- + @@ -262,7 +263,7 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a nav_altitude = flight_altitude -> can be set in the flight params setting page --> - + @@ -276,7 +277,7 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a nav_throttle_setpoint = 9600*(V_CTL_AUTO_THROTTLE_NOMINAL_CRUISE_THROTTLE) --> - + @@ -333,8 +334,8 @@ perhaps a few global alt exceptions? But where do they deroute to assuming the a - - + + diff --git a/conf/userconf/OPENUAS/openuas_conf.xml b/conf/userconf/OPENUAS/openuas_conf.xml index 697f3ad9a3..2329cebe00 100644 --- a/conf/userconf/OPENUAS/openuas_conf.xml +++ b/conf/userconf/OPENUAS/openuas_conf.xml @@ -7,7 +7,7 @@ telemetry="telemetry/default_rotorcraft.xml" flight_plan="flight_plans/rotorcraft_basic.xml" settings="settings/rotorcraft_basic.xml settings/superbitrf.xml settings/nps.xml" - settings_modules="modules/ahrs_int_cmpl_quat.xml modules/stabilization_int_quat.xml modules/nav_basic_rotorcraft.xml modules/guidance_rotorcraft.xml modules/gps.xml modules/imu_common.xml modules/air_data.xml modules/geo_mag.xml modules/gps_ubx_ucenter.xml" + settings_modules="modules/ahrs_int_cmpl_quat.xml modules/stabilization_int_quat.xml modules/nav_basic_rotorcraft.xml modules/guidance_rotorcraft.xml modules/gps.xml modules/imu_common.xml modules/radio_control_superbitrf_rc.xml modules/air_data.xml modules/geo_mag.xml modules/gps_ubx_ucenter.xml" gui_color="#fffffe72b9fd" /> + + + + + + + \ No newline at end of file diff --git a/sw/airborne/link_mcu_can.c b/sw/airborne/link_mcu_can.c index 8cb21b805f..bad02f9edc 100644 --- a/sw/airborne/link_mcu_can.c +++ b/sw/airborne/link_mcu_can.c @@ -213,7 +213,7 @@ static void send_fbw_status(struct transport_tx *trans, struct link_device *dev) void link_mcu_init(void) { - ppz_can_init(link_mcu_on_can_msg); + ppz_can_init((can_rx_callback_t)link_mcu_on_can_msg); #ifdef AP #if PERIODIC_TELEMETRY diff --git a/sw/tools/generators/gen_flight_plan.ml b/sw/tools/generators/gen_flight_plan.ml index dac7bca865..8adb1b48d4 100644 --- a/sw/tools/generators/gen_flight_plan.ml +++ b/sw/tools/generators/gen_flight_plan.ml @@ -95,15 +95,15 @@ let check_altitude_srtm = fun a x wgs84 -> Srtm.add_path (Env.paparazzi_home ^ "/data/srtm"); try let srtm_alt = float (Srtm.of_wgs84 wgs84) in - if a < srtm_alt then begin - fprintf stderr "\nMAJOR WARNING: below SRTM ground altitude (%.0f<%.0f) in %s\n" a srtm_alt (Xml.to_string x) + if a < srtm_alt then begin (* Not fully correct, Flightplan "alt" is not alt as we know it *) + fprintf stderr "MAJOR NOTICE: below SRTM ground altitude (%.0f<%.0f) in %s\n" a srtm_alt (Xml.to_string x) end with Srtm.Tile_not_found e -> fprintf stderr "No SRTM data found to check altitude.\n" let check_altitude = fun a x -> if a < !ground_alt +. !security_height then begin - fprintf stderr "\nWarning: low altitude (%.0f<%.0f+%.0f) in %s\n\n" a !ground_alt !security_height (Xml.to_string x) + fprintf stderr "\nNOTICE: low altitude (%.0f<%.0f+%.0f) in %s\n\n" a !ground_alt !security_height (Xml.to_string x) end