Hi I’m a rookie programmer and I was wondering how I should change the LabView autonomous code to work with our mecanums if we align the sensors as the autonomous code shows.
Basically, what all do we need to change, and does it automatically drive itself. But mostly how to work with mecanums.
The default code uses the Arcade form of Robot Drive. Since your robot teleop function has been modified to be able to drive and steer the robot, try making similar change to the autonomous.
The two control elements used in autonomous are the steering amount and forward velocity. The line sensors determine whether to drive left, right, straight, or stop. Try to use the mecanum version of drive to perform these actions, and perhaps put the code into the case statement.
Greg McKaskle
You can use the arcade drive.vi to move the robot you don’t need the mecanum.vi unless you want to strafe
Ok I will just wire it to use arcade, Thanks!