mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 01:43:35 +08:00
FixedwingPositionControl: slightly simplify manual position control (use navigateLine() to be sure no turnaround)
make notes on odd things that are likely still wrong
This commit is contained in:
@@ -156,6 +156,10 @@ void TECSAltitudeReferenceModel::update(const float dt, const AltitudeReferenceS
|
||||
_alt_control_traj_generator.setMaxAccel(param.vert_accel_limit);
|
||||
_alt_control_traj_generator.setMaxVel(fmax(param.max_climb_rate, param.max_sink_rate));
|
||||
|
||||
// XXX: this is a bit risky.. .alt_rate here could be NAN (by interface design) - and is only ok to input to the
|
||||
// setVelSpFeedback() method because it calls the reset in the logic below when it is NAN.
|
||||
// TODO: stop it with the NAN interfaces, make sure to take care of this when refactoring and separating altitude
|
||||
// and height rate control loops.
|
||||
_velocity_control_traj_generator.setVelSpFeedback(setpoint.alt_rate);
|
||||
|
||||
bool control_altitude = true;
|
||||
|
||||
Reference in New Issue
Block a user