Exemple #1
0
 /// <summary>
 /// sets the wheel speed of the two tracks of the robot
 /// </summary>
 /// <param name="leftTrackSpeed">speed for the left track</param>
 /// <param name="rightTrackWheelSpeed">speed for the right track</param>
 private static void SetTrackSpeed(sbyte leftTrackSpeed, sbyte rightTrackWheelSpeed)
 {
     LeftTrack.SetSpeed(leftTrackSpeed);
     RightTrack.SetSpeed(rightTrackWheelSpeed);
 }
Exemple #2
0
 /// <summary>
 /// this method halts the two large motors that are responsible
 /// for rotating the two main Track that transport the robot
 /// </summary>
 public static void HaltTracks()
 {
     LeftTrack.Brake();
     RightTrack.Brake();
 }