Esempio n. 1
0
 private async void LowerArmSlider_Released(object sender, Controls.SliderEventArgs e)
 {
     //if (ControllerHandler.ConnectionStatus == ConnectionStatus.Connected)
     //{
     //    await landingPageController.SendRequest("Disengage", "LowerLever");
     //}
 }
Esempio n. 2
0
 private async void GripperSlider_Moved(object sender, Controls.SliderEventArgs e)
 {
     if (ControllerHandler.ConnectionStatus == ConnectionStatus.Connected)
     {
         JsonObject command = new JsonObject();
         command.AddValue("Target", "Gripper");
         command.AddValue("Action", "Set");
         command.AddValue("Position", Map(-100, 100, 0, 100, e.Distance));
         await landingPageController.SendRequest(command, true);
     }
 }