mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mc_pos_control: format fixes
This commit is contained in:
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;
|
||||
};
|
||||
|
||||
_vel_err_d(0) = _vel_x_deriv.update(-_vel(0));
|
||||
|
||||
_vel_err_d(1) = _vel_y_deriv.update(-_vel(1));
|
||||
|
||||
_vel_err_d(2) = _vel_z_deriv.update(-_vel(2));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user