private static void LoadData()
        {
            if (!Controller.IsConnected)
            {
                ControllerNotConnected();
                return;
            }
            HandList hands = Controller.Frame().Hands;

            if (hands.Count == 2)
            {
                DroneStateManager.Update(hands.Leftmost, hands.Rightmost);
                errorCount = 0;
            }
            else
            {
                if (errorCount < ConfigData.ErrorToleranceBeforeSafeMode)
                {
                    errorCount++;
                }
                else
                {
                    DroneStateManager.SetDroneToSafe();
                    errorCount = 0;
                }
            }
        }
 private static void ControllerNotConnected()
 {
     DroneStateManager.SetDroneToSafe();
     FrameLoadTimer.Stop();
     MessageBox.Show(
         "Controller not connected! \n" +
         "Please ensure your Leap Motion device is connected" +
         "and the Leap service is running.",
         "Controller Error!");
 }