Skip to content

Commit c2b6381

Browse files
StifaelLorenzMeier
authored andcommitted
adjust to astyle format
1 parent 5ed35e9 commit c2b6381

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/mc_pos_control/mc_pos_control_main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,8 @@ MulticopterPositionControl::control_manual(float dt)
926926
if (fabsf(req_vel_sp(0)) < _params.hold_xy_dz && fabsf(req_vel_sp(1)) < _params.hold_xy_dz) {
927927
if (!_pos_hold_engaged) {
928928

929-
float vel_xy_mag = sqrtf(_vel(0)*_vel(0) + _vel(1)*_vel(1));
929+
float vel_xy_mag = sqrtf(_vel(0) * _vel(0) + _vel(1) * _vel(1));
930+
930931
if (_params.hold_max_xy < FLT_EPSILON || vel_xy_mag < _params.hold_max_xy) {
931932
/* reset position setpoint to have smooth transition from velocity control to position control */
932933
_pos_hold_engaged = true;

0 commit comments

Comments
 (0)