Skip to content

Commit

Permalink
Added bounds on the hover thrust
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoudSmeur committed Aug 25, 2016
1 parent 57c1193 commit 47067dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/airframes/TUDELFT/tudelft_outback.xml
Expand Up @@ -193,6 +193,8 @@
<define name="OUTBACK_P_ON_Q_COUPLING" value="6.0"/>
<define name="OUTBACK_Q_ON_P_COUPLING" value="0.0"/>
<define name="OUTBACK_GROUND_PITCH_CONTROL_GAIN" value="70000.0"/>
<define name="OUTBACK_MIN_HOVER_THROTTLE" value="4000"/>
<define name="OUTBACK_MAX_HOVER_THROTTLE" value="7700"/>
</section>

<section name="FORWARD">
Expand Down
2 changes: 2 additions & 0 deletions sw/airborne/firmwares/rotorcraft/guidance/guidance_v.c
Expand Up @@ -382,6 +382,8 @@ void guidance_v_run(bool in_flight)
} else
#endif
stabilization_cmd[COMMAND_THRUST] = guidance_v_delta_t;

Bound(stabilization_cmd[COMMAND_THRUST], OUTBACK_MIN_HOVER_THROTTLE, OUTBACK_MAX_HOVER_THROTTLE);
}

break;
Expand Down

0 comments on commit 47067dd

Please sign in to comment.