private void btn_curve_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         int speed = int.Parse(txt_speed.Text);
         client.Curve((int)P1.Origo.X, (int)P1.Origo.Y, 0, (int)P2.Origo.X, (int)P2.Origo.Y, 0, speed);
     }
     catch (CommandIntegerParamException ie)
     {
         MessageBox.Show(ie.Message);
     }
     catch (DroneCurveException ce)
     {
         MessageBox.Show(ce.Message);
     }
 }