diff --git a/conf/airframes/examples/bebop2_opticflow.xml b/conf/airframes/examples/bebop2_opticflow.xml index dfebbe63ac..91ce962c4f 100644 --- a/conf/airframes/examples/bebop2_opticflow.xml +++ b/conf/airframes/examples/bebop2_opticflow.xml @@ -277,9 +277,9 @@ - - - + + + diff --git a/conf/airframes/examples/cube_orange.xml b/conf/airframes/examples/cube_orange.xml index e212cbe236..c1ec70f09c 100644 --- a/conf/airframes/examples/cube_orange.xml +++ b/conf/airframes/examples/cube_orange.xml @@ -126,6 +126,7 @@ + @@ -300,9 +301,9 @@ - - - + + + diff --git a/conf/modules/imu_mpu9250_i2c.xml b/conf/modules/imu_mpu9250_i2c.xml index 9609edbd6d..e920e9560d 100644 --- a/conf/modules/imu_mpu9250_i2c.xml +++ b/conf/modules/imu_mpu9250_i2c.xml @@ -42,6 +42,7 @@ + diff --git a/conf/modules/imu_mpu9250_spi.xml b/conf/modules/imu_mpu9250_spi.xml index 16e09882f1..1492ce4c46 100644 --- a/conf/modules/imu_mpu9250_spi.xml +++ b/conf/modules/imu_mpu9250_spi.xml @@ -51,6 +51,7 @@ + diff --git a/conf/modules/sensors_hitl.xml b/conf/modules/sensors_hitl.xml index 9cd098ebb4..067571d804 100644 --- a/conf/modules/sensors_hitl.xml +++ b/conf/modules/sensors_hitl.xml @@ -33,7 +33,7 @@ - + diff --git a/sw/airborne/firmwares/rotorcraft/guidance/guidance_indi_hybrid.c b/sw/airborne/firmwares/rotorcraft/guidance/guidance_indi_hybrid.c index 9f91fbcbc8..b31903ea22 100644 --- a/sw/airborne/firmwares/rotorcraft/guidance/guidance_indi_hybrid.c +++ b/sw/airborne/firmwares/rotorcraft/guidance/guidance_indi_hybrid.c @@ -128,13 +128,14 @@ static void guidance_indi_filter_thrust(void); #warning "The thrust dynamics are now specified in continuous time with the corner frequency of the first order model!" #warning "define GUIDANCE_INDI_THRUST_DYNAMICS_FREQ in rad/s" #warning "Use -log(1 - old_number) * PERIODIC_FREQUENCY to compute it from the old value." +#define GUIDANCE_INDI_THRUST_DYNAMICS_FREQ (-ln(1-GUIDANCE_INDI_THRUST_DYNAMICS)*PERIODIC_FREQUENCY) #endif #ifndef GUIDANCE_INDI_THRUST_DYNAMICS_FREQ -#ifndef STABILIZATION_INDI_ACT_DYN_P -#error "You need to define GUIDANCE_INDI_THRUST_DYNAMICS to be able to use indi vertical control" +#ifndef STABILIZATION_INDI_ACT_FREQ_P +#error "You need to define GUIDANCE_INDI_THRUST_DYNAMICS_FREQ to be able to use indi vertical control" #else // assume that the same actuators are used for thrust as for roll (e.g. quadrotor) -#define GUIDANCE_INDI_THRUST_DYNAMICS_FREQ STABILIZATION_INDI_ACT_DYN_P +#define GUIDANCE_INDI_THRUST_DYNAMICS_FREQ STABILIZATION_INDI_ACT_FREQ_P #endif #endif //GUIDANCE_INDI_THRUST_DYNAMICS_FREQ