Skip to content

Commit

Permalink
fix WEAK LIFT_D
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Sep 30, 2023
1 parent 4a74a88 commit dd7f471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,8 @@ void guidance_indi_propagate_filters(void);
#if GUIDANCE_INDI_QUADPLANE
// For Quadplane types
static void guidance_indi_calcg_wls(struct FloatVect3 a_diff);
static float guidance_indi_get_liftd_abi(void);
#else
static void guidance_indi_calcg_wing(struct FloatMat33 *Gmat);
static float guidance_indi_get_liftd(float pitch, float theta);
#endif

#if PERIODIC_TELEMETRY
Expand Down Expand Up @@ -749,7 +747,7 @@ void guidance_indi_calcg_wls(struct FloatVect3 a_diff) {
float lift_thrust_bz = accel_bodyz_filt.o[0]; // Sum of lift and thrust in boxy z axis (level flight)

// get the derivative of the lift wrt to theta
float liftd = guidance_indi_get_liftd_abi();
float liftd = guidance_indi_get_liftd(0.0f, 0.0f);

Gmat_quadplane[0][0] = -sphi*stheta*lift_thrust_bz;
Gmat_quadplane[1][0] = -cphi*lift_thrust_bz;
Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/ctrl/ctrl_eff_sched_rot_wing_v3b.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ void schedule_liftd(float *airspeed2, float *sinr2, float wing_rot_deg)
}

// Override standard LIFT_D function
float guidance_indi_get_liftd(float pitch, float theta) {
float guidance_indi_get_liftd(float pitch UNUSED, float theta UNUSED) {
return ctrl_eff_sched_rot_wing_lift_d;
}

Expand Down

0 comments on commit dd7f471

Please sign in to comment.