18
Vex Robotics Programming Options

Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Embed Size (px)

Citation preview

Page 1: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Vex Robotics

Programming Options

Page 2: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included with the easyC software.

Page 3: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Online Code

This code allows you to control the motors and monitor the sensor values on your robot directly from your computer.

The Online code is a valuable testing and troubleshooting tool.

Page 4: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Default Code

This code is the default programming for the VEX robot (the program it came with fresh out of the box).

This code is always available in case you ever need to return your robot's Micro Controller programming to its original state and get a fresh start.

Page 5: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

When you do begin developing your own robot code, you will find that your program's behavior will usually follow one of three main patterns:

Page 6: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Autonomous Code

Autonomous code allows a robot to perform behaviors without input from the radio control transmitter.

Page 7: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Radio Control Code

Radio control code allows you to configure the way in which the radio control transmitter controls the robot.

Page 8: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Mixed Autonomous and Radio Control Code

Autonomous code can be integrated with radio control code to achieve even better robot performance for complex tasks.

Page 9: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

motor and sensor setup

Before you begin the programming examples, take a moment to ensure your robot’s hardware is configured properly.

Page 10: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Make sure the left motor is plugged into Motor port 3 of your VEX Micro Controller.

Make sure the right motor is plugged into Motor port 2 of your VEX Micro Controller.

Page 11: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Check to see that the front-mounted bump sensor is plugged intoAnalog/Digital port 6.

Page 12: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Using online code to test your robot

This code lets you control the robot’s motors and monitor its sensor inputs directly from your computer.

This can be very helpful in troubleshooting problems with your robot or computer interface.

To use the online code, follow the steps below.

Page 13: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Make sure your programming hardware is connected correctlyand your robot is on.

Page 14: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Start easyC and select “Online Window...” from the “Build and Download” menu.

Page 15: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Restoring default code

Should you ever need or want to restore the default functionality that your robot came with originally.

Page 16: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Select “Download Default Code” from the “Build and Download” menu.

Page 17: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

A confirmation screen will appear. Click “Yes.” The default code

Page 18: Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included

Your robot will now function in its “out-of-box” state.Use the transmitter to operate the robot with its “out-of-the-box” functionality.