Skip to content

CodeSample15/PositionTrackingVexAuton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

PositionTrackingVexAuton

Robot configuration: X drive with two odometers, one for horizontal and one for verticle tracking.

Usage

Update the following arrays in the source code:

const int positions[?][2] = {}; //put in desired x y waypoints here

int rotatedPoints[?][2]; //the only thing that you need to change here is the size of the array. Make the ? the same value as the ? in the positions array.

To use the code, call the moveTo() function with the index of the waypoint you want to move to(located in the positions array) and the speed of the robot. For turning, use either rightinertialturn or leftinertialturn with the amount that you want the robot to turn and the speed you want it to move at as arguments.

The last parameter of the moveTo() function is a boolean where you can tell the robot to use a ramp up and ramp down function for moving (true), or simply slow down when it reaches a certain distance from the end goal and keep a constant speed the rest of the time(false)

About

Used for Vex robots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published