Skip to content

Commit

Permalink
AC_Autorotation: fix missing "else" condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferruccio1984 authored and bnsgeyer committed Dec 23, 2023
1 parent 450f5e7 commit 6290b05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AC_Autorotation/AC_Autorotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ void AC_Autorotation::time_to_ground()
{
if(_inav.get_velocity_z_up_cms() < 0.0f ) {
_time_to_ground = -(_radar_alt/_inav.get_velocity_z_up_cms());
}else{
_time_to_ground = _t_tch +1.0f;
}
}

Expand Down

0 comments on commit 6290b05

Please sign in to comment.