mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:21:36 +08:00
mc_pos_control: format fixes
This commit is contained in:
committed by
Lorenz Meier
parent
deaa83bba0
commit
3c667bb4f5
@@ -2361,12 +2361,14 @@ MulticopterPositionControl::update_velocity_derivative()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(PX4_ISFINITE(_local_pos.z_deriv)){
|
if (PX4_ISFINITE(_local_pos.z_deriv)) {
|
||||||
_z_derivative = _local_pos.z_deriv;
|
_z_derivative = _local_pos.z_deriv;
|
||||||
};
|
};
|
||||||
|
|
||||||
_vel_err_d(0) = _vel_x_deriv.update(-_vel(0));
|
_vel_err_d(0) = _vel_x_deriv.update(-_vel(0));
|
||||||
|
|
||||||
_vel_err_d(1) = _vel_y_deriv.update(-_vel(1));
|
_vel_err_d(1) = _vel_y_deriv.update(-_vel(1));
|
||||||
|
|
||||||
_vel_err_d(2) = _vel_z_deriv.update(-_vel(2));
|
_vel_err_d(2) = _vel_z_deriv.update(-_vel(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user