mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-09 12:08:37 +08:00
mc_pos_control: commented code block removed
This commit is contained in:
@@ -1022,16 +1022,6 @@ MulticopterPositionControl::task_main()
|
||||
_vel_sp(2) = _params.land_speed;
|
||||
}
|
||||
|
||||
|
||||
// if (!_control_mode.flag_control_manual_enabled) {
|
||||
// /* limit 3D speed only in non-manual modes */
|
||||
// float vel_sp_norm = _vel_sp.edivide(_params.vel_max).length();
|
||||
//
|
||||
// if (vel_sp_norm > 1.0f) {
|
||||
// _vel_sp /= vel_sp_norm;
|
||||
// }
|
||||
// }
|
||||
|
||||
_global_vel_sp.vx = _vel_sp(0);
|
||||
_global_vel_sp.vy = _vel_sp(1);
|
||||
_global_vel_sp.vz = _vel_sp(2);
|
||||
|
||||
Reference in New Issue
Block a user