Presentation is loading. Please wait.

Presentation is loading. Please wait.

1.15: Dual Joystick Control (Tank)

Similar presentations


Presentation on theme: "1.15: Dual Joystick Control (Tank)"— Presentation transcript:

1 1.15: Dual Joystick Control (Tank)

2 1.15: Dual Joystick Control (Tank)
In this section you will learn more about how the controller interprets the signals it receives from the joystick. You will also learn about controlling the robot in Tank control mode

3 Robot Control The Control Program The program stored in the controller instructs the robot how to interpret the input it receives from the robot transmitter and sensors.

4 Robot Control The Control Program The default program used in the last activity instructs the controller to turn motor 1 in a clockwise direction every time the joystick on channel 1 is moved to the left.

5 Robot Control The program is stored in the controller memory.
Only one program can be stored in the controller’s memory at a time.

6 Default Code The Default Program Every Vex controller comes with a default program already loaded into it.

7 Default Code The Default Program The default program enables you to configure and operate the robot without having to learn how to program it at the same time. The default code allows you to accomplish a variety of tasks without writing a special program for your robot.

8 The Default Program The table in the picture indicates how a Motor Module plugged into the controller would react to the different inputs of the transmitter. The Clockwise (CW) and Counterclockwise (CCW) directions are determined by looking at the rear of the motor as if you were reading the label on the back of the motor. Note: In this case, the controller has no jumper clips installed.

9 Tank Control Tank control is a style of controlling a robot’s drive train with two joysticks. It gets its name because it is similar to how an army tank is controlled: If the left joystick (channel 3) is moved up, the left side of the robot rotates forward. If the right joystick (channel 2) is moved up, the right side of the robot rotates forward. If both joysticks are moved up, both sides of the robot rotate and it moves forward in a relatively straight line.

10 1.17: Single Joystick Control (Arcade)

11 1.17: Single Joystick Control (Arcade)
In this section you will learn to operate the robot in arcade mode. You will review the set-up and operation requirements for arcade control. In the next section you will drive the robot in arcade control.

12 Arcade Control Arcade control allows you to control the robot’s drive train with one joystick, similar to operating an arcade game. The vertical channel of the joystick moves the robot forwards and backwards. The horizontal channel on the same joystick rotates the robot left and right.

13 Arcade Control In arcade control one channel on the transmitter controls the behavior of both of the drive motors at the same time. When both the vertical and horizontal channels are activated at the same time, the signals are "mixed" inside the controller.

14 Jumper Clips The Vex Jumper clips are used on the controller to close two open points in a circuit like a short. The default code inside the controller has logic that can be configured differently when jumper clips are placed in specific locations in the I/O port on the controller.

15 Jumper Clips You will add a jumper clip in port #12 on the I/O bank to switch the control style from tank to arcade. This table displays how the channels of the transmitter are remapped inside the controller when a jumper clip is installed in port #12 on the controller.

16 Arcade Default Code Settings
When configured to operate with Arcade style control, the robot responds to the transmitter signals as follows: If the right joystick (channel 2) is moved up, both the left side and right side of the robot rotate forward. If the right joystick (channel 1) is moved left, the right side and left sides of the robot rotate in opposite directions causing the robot to turn.


Download ppt "1.15: Dual Joystick Control (Tank)"

Similar presentations


Ads by Google