Example #1
0
 private void Hover()
 {
     navigationSystems.AlignAgainstGravity();
     navigationSystems.StopRoll();
     navigationSystems.StopSpin();
     if (navigationSystems.GetSpeed() > 20)
     {
         navigationSystems.SlowDown();
     }
     else
     {
         navigationSystems.MaintainAltitude(trackingSystems.GetAltitude(), hoverHeight, Math.Abs(trackingSystems.GetAltitude() - hoverHeight) / 2);
     }
 }