Skip to content

Commit

Permalink
FixedWingAttitudeControl: small gain scheduling hack for airspeed less
Browse files Browse the repository at this point in the history
tailsitters

Signed-off-by: Roman <bapstroman@gmail.com>
  • Loading branch information
RomanBapst committed Apr 5, 2018
1 parent c67507c commit d011aa7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/fw_att_control/FixedwingAttitudeControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,10 @@ void FixedwingAttitudeControl::run()
perf_count(_nonfinite_input_perf);
}

if (_vehicle_status.in_transition_mode || !_vehicle_status.is_rotary_wing) {
airspeed = _parameters.airspeed_max;
}

/*
* For scaling our actuators using anything less than the min (close to stall)
* speed doesn't make any sense - its the strongest reasonable deflection we
Expand Down

0 comments on commit d011aa7

Please sign in to comment.