fixed code style

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2016-11-21 07:29:21 +01:00
parent 0e481a5d00
commit d4c87d62f1
3 changed files with 6 additions and 3 deletions
@@ -2296,7 +2296,8 @@ FixedwingPositionControl::task_main()
}
// adjust navigation waypoints in position control mode
if (_control_mode.flag_control_altitude_enabled && _control_mode.flag_control_velocity_enabled && _global_pos.lat_lon_reset_counter != _pos_reset_counter) {
if (_control_mode.flag_control_altitude_enabled && _control_mode.flag_control_velocity_enabled
&& _global_pos.lat_lon_reset_counter != _pos_reset_counter) {
_hdg_hold_prev_wp.lat += _global_pos.delta_lat_lon[0];
_hdg_hold_prev_wp.lon += _global_pos.delta_lat_lon[1];
_hdg_hold_curr_wp.lat += _global_pos.delta_lat_lon[0];