Esempio n. 1
0
 public void RoverMovementStatusUpdater(RoverAndArmRoverMovement roverMovement, double pwm)
 {
     RoverConsole.ArcEyeAiContent("Rover Movement Command : Direction-" + roverMovement.ToString() + ", Speed-" + pwm.ToString());
     ConnectorOne.RoverMovementStatusUpdater(roverMovement, pwm);
 }
Esempio n. 2
0
 public static void RoverMovementStatusUpdater(RoverAndArmRoverMovement roverMovement, double pwm)
 {
     try
     {
         RoverConsole.ArcEyeAiContent("Uploading Rover Movement Command : Direction-" + roverMovement.ToString() + ", Speed-" + pwm.ToString());
         pi1Port1SwSender.AutoFlush = true;
         pi1Port1SwSender.Write(Convert.ToString(Convert.ToInt32(roverMovement)) + "," + Convert.ToString(pwm));
         RoverConsole.ArcEyeAiContent("Command Uploaded to Pi1 via port1");
         if (ConnectorOne.pi1Port1ConnectedStatusEvent != null)
         {
             ConnectorOne.pi1Port1ConnectedStatusEvent(new object(), new EventArgs());
         }
     }
     catch (Exception ex)
     {
         RoverConsole.ArcEyeAiContentThreadSafe(ex.ToString());
         RoverConsole.ArcEyeAiContentThreadSafe("Trying To Reconnect");
         if (ConnectorOne.pi1Port1DisconnectedStatusEvent != null)
         {
             ConnectorOne.pi1Port1DisconnectedStatusEvent(new object(), new EventArgs());
         }
     }
 }
Esempio n. 3
0
 public void RoverMovementStatusUpdater()
 {
     if (_RoverMovement != null)
     {
         RoverConsole.ArcEyeAiContentThreadSafe("Rover Movement Command : Direction-" + roverMovement.ToString() + ", Speed-" + pwm.ToString());
         ConnectorOne.RoverMovementStatusUpdater(roverMovement, pwm);
     }
 }