Ejemplo n.º 1
0
 private void buttonGoForward_Click(object sender, EventArgs e)
 {
     if (roboClaw.IsOpen())
     {
         roboClaw.ST_M1Forward(speed); // Start the motor going forward at power 100
         myTimer.Start();              // Start timer to show encoder ticks
         buttonStop.Enabled       = true;
         buttonGoForward.Enabled  = false;
         buttonGoReverse.Enabled  = false;
         buttonDisconnect.Enabled = false;
         buttonGoToZero.Enabled   = false;
     }
 }
Ejemplo n.º 2
0
 public void stopMotors(Roboclaw roboClaw)
 {
     roboClaw.ST_M1Forward(0);
     roboClaw.ST_M2Forward(0);
 }