Skip to content

Commit

Permalink
changed default coupling values and larger range for G rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoudSmeur committed Aug 9, 2016
1 parent 2dda17f commit 3421eda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions conf/airframes/TUDELFT/tudelft_outback.xml
Expand Up @@ -189,6 +189,8 @@
<define name="NO_RC_THRUST_LIMIT" value="TRUE"/>
<define name="DEFAULT_CIRCLE_RADIUS" value="100."/> <!-- for now distance to waypoint ok -->
<define name="MilliAmpereOfAdc(_adc)" value="(DefaultMilliAmpereOfAdc(_adc) + 417)"/>
<define name="OUTBACK_P_ON_Q_COUPLING" value="6.0"/>
<define name="OUTBACK_Q_ON_P_COUPLING" value="1.0"/>
</section>

<section name="FORWARD">
Expand Down
Expand Up @@ -72,8 +72,8 @@ struct FloatRates stabilization_rate_sum_err;

struct FloatRates stabilization_rate_fb_cmd;

float p_on_q_coupling = 0.0;
float q_on_p_coupling = 0.0;
float p_on_q_coupling = OUTBACK_P_ON_Q_COUPLING;
float q_on_p_coupling = OUTBACK_Q_ON_P_COUPLING;

#ifndef STABILIZATION_RATE_DEADBAND_P
#define STABILIZATION_RATE_DEADBAND_P 0
Expand Down
2 changes: 1 addition & 1 deletion sw/airborne/modules/helicopter/swashplate_mixing.c
Expand Up @@ -85,7 +85,7 @@ void swashplate_mixing_run(pprz_t in_cmd[])
int16_t cmd_roll;
int16_t cmd_pitch;

float compensation_angle = (radio_control.values[8]+9600.0)/(2*9600.0)*0.7854;
float compensation_angle = (radio_control.values[8]+9600.0)/(2*9600.0)*1.0472;

// // Add advance compensation with G matrix
cmd_roll = in_cmd[COMMAND_ROLL];
Expand Down

0 comments on commit 3421eda

Please sign in to comment.