diff --git a/conf/airframes/TUDELFT/tudelft_conf.xml b/conf/airframes/TUDELFT/tudelft_conf.xml index f7ac572d79..128de52644 100644 --- a/conf/airframes/TUDELFT/tudelft_conf.xml +++ b/conf/airframes/TUDELFT/tudelft_conf.xml @@ -214,8 +214,8 @@ airframe="airframes/TUDELFT/tudelft_outback.xml" radio="radios/dummy.xml" telemetry="telemetry/rotorcraft_with_logger.xml" - flight_plan="flight_plans/dummy.xml" - settings="settings/rotorcraft_basic.xml settings/control/stabilization_att_int.xml settings/control/rotorcraft_guidance.xml" + flight_plan="flight_plans/TUDELFT/tudelft_delft_basic.xml" + settings="settings/rotorcraft_basic.xml settings/control/stabilization_att_int.xml settings/control/rotorcraft_guidance.xml settings/control/stabilization_rate.xml" settings_modules="modules/opa_controller.xml modules/air_data.xml modules/temp_adc.xml modules/logger_sd_spi_direct.xml modules/gps_ubx_ucenter.xml" gui_color="#ffffdffac31f" /> diff --git a/conf/airframes/TUDELFT/tudelft_outback.xml b/conf/airframes/TUDELFT/tudelft_outback.xml index dfd8e5651e..7e055fa418 100644 --- a/conf/airframes/TUDELFT/tudelft_outback.xml +++ b/conf/airframes/TUDELFT/tudelft_outback.xml @@ -23,6 +23,7 @@ + @@ -38,6 +39,8 @@ + + @@ -70,23 +73,30 @@ - + - + - - - - + + + + +
+ + +
+ - - - - - + + + + + + + @@ -94,11 +104,13 @@ - + + + -
- +
+ @@ -107,26 +119,40 @@ - + - - - - - - + + + + + + + + + + + + + + +
- +
@@ -145,7 +171,7 @@ - + @@ -159,6 +185,12 @@
+ + + + + + @@ -177,7 +209,7 @@ - + @@ -206,14 +238,14 @@ - - + + - - + + - - + + @@ -223,26 +255,26 @@
- - - - - + + + + +
- - - - + + + +
- - + +
diff --git a/conf/flight_plans/TUDELFT/tudelft_delft_basic.xml b/conf/flight_plans/TUDELFT/tudelft_delft_basic.xml index 023fe9fd36..0629bc9c9f 100644 --- a/conf/flight_plans/TUDELFT/tudelft_delft_basic.xml +++ b/conf/flight_plans/TUDELFT/tudelft_delft_basic.xml @@ -1,6 +1,6 @@ - +
#include "autopilot.h"
@@ -12,9 +12,12 @@ - + + + + @@ -23,19 +26,30 @@ + - + + + - + + + + + + + + + - + @@ -49,7 +63,7 @@ - + @@ -59,16 +73,6 @@ - - - - - - - - - - @@ -82,7 +86,7 @@ - +
diff --git a/conf/flight_plans/TUDELFT/tudelft_delft_outback.xml b/conf/flight_plans/TUDELFT/tudelft_delft_outback.xml index a9910c8c1d..8e2138a07d 100644 --- a/conf/flight_plans/TUDELFT/tudelft_delft_outback.xml +++ b/conf/flight_plans/TUDELFT/tudelft_delft_outback.xml @@ -44,7 +44,7 @@ - + @@ -59,7 +59,7 @@ - + diff --git a/conf/telemetry/rotorcraft_with_logger.xml b/conf/telemetry/rotorcraft_with_logger.xml index ea59d32d58..b76465809c 100644 --- a/conf/telemetry/rotorcraft_with_logger.xml +++ b/conf/telemetry/rotorcraft_with_logger.xml @@ -29,6 +29,7 @@ + @@ -151,10 +152,10 @@ - - + + diff --git a/sw/airborne/modules/nav/nav_heli_spinup.h b/sw/airborne/modules/nav/nav_heli_spinup.h index bac44a0e6c..6e2667992b 100644 --- a/sw/airborne/modules/nav/nav_heli_spinup.h +++ b/sw/airborne/modules/nav/nav_heli_spinup.h @@ -27,6 +27,8 @@ #define NAV_HELI_SPINUP_H #include "std.h" +#include "paparazzi.h" +#include "modules/helicopter/throttle_curve.h" struct nav_heli_spinup_t { uint16_t duration; ///< The duration in seconds to reach the final throttle diff --git a/sw/airborne/subsystems/ahrs/ahrs_int_cmpl_quat.c b/sw/airborne/subsystems/ahrs/ahrs_int_cmpl_quat.c index 52e01aab98..ded7b75416 100644 --- a/sw/airborne/subsystems/ahrs/ahrs_int_cmpl_quat.c +++ b/sw/airborne/subsystems/ahrs/ahrs_int_cmpl_quat.c @@ -100,6 +100,17 @@ PRINT_CONFIG_VAR(AHRS_MAG_ZETA) #define AHRS_HEADING_UPDATE_GPS_MIN_SPEED 5.0 #endif +/** Default Rate filter Low pass */ +#ifdef AHRS_PROPAGATE_LOW_PASS_RATES +#ifndef AHRS_PROPAGATE_LOW_PASS_RATES_MUL +#define AHRS_PROPAGATE_LOW_PASS_RATES_MUL 2 +#endif + +#ifndef AHRS_PROPAGATE_LOW_PASS_RATES_DIV +#define AHRS_PROPAGATE_LOW_PASS_RATES_DIV 3 +#endif +#endif + struct AhrsIntCmplQuat ahrs_icq; static inline void UNUSED ahrs_icq_update_mag_full(struct Int32Vect3 *mag, float dt); @@ -187,9 +198,9 @@ void ahrs_icq_propagate(struct Int32Rates *gyro, float dt) /* low pass rate */ #ifdef AHRS_PROPAGATE_LOW_PASS_RATES - RATES_SMUL(ahrs_icq.imu_rate, ahrs_icq.imu_rate, 2); + RATES_SMUL(ahrs_icq.imu_rate, ahrs_icq.imu_rate, AHRS_PROPAGATE_LOW_PASS_RATES_MUL); RATES_ADD(ahrs_icq.imu_rate, omega); - RATES_SDIV(ahrs_icq.imu_rate, ahrs_icq.imu_rate, 3); + RATES_SDIV(ahrs_icq.imu_rate, ahrs_icq.imu_rate, AHRS_PROPAGATE_LOW_PASS_RATES_DIV); #else RATES_COPY(ahrs_icq.imu_rate, omega); #endif