Copter: minor formatting fix

This commit is contained in:
Randy Mackay 2015-12-28 14:01:12 +09:00
parent 750cacc875
commit 6ac48b4dac
1 changed files with 2 additions and 2 deletions

View File

@ -19,13 +19,13 @@ void Copter::update_ground_effect_detector(void)
float xy_speed_cms = 0.0f;
float des_climb_rate_cms = pos_control.get_desired_velocity().z;
if(pos_control.is_active_xy()) {
if (pos_control.is_active_xy()) {
Vector3f vel_target = pos_control.get_vel_target();
vel_target.z = 0.0f;
xy_des_speed_cms = vel_target.length();
}
if(position_ok() || optflow_position_ok()) {
if (position_ok() || optflow_position_ok()) {
Vector3f vel = inertial_nav.get_velocity();
vel.z = 0.0f;
xy_speed_cms = vel.length();