Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Following Line Sensors (http://www.chiefdelphi.com/forums/showthread.php?t=90871)

dmitch 03-02-2011 20:25

Following Line Sensors
 
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.

Greg McKaskle 03-02-2011 20:45

Re: Following Line Sensors
 
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

bladetech932 03-02-2011 20:46

Re: Following Line Sensors
 
You can use the arcade drive.vi to move the robot you don't need the mecanum.vi unless you want to strafe

dmitch 04-02-2011 08:22

Re: Following Line Sensors
 
Ok I will just wire it to use arcade, Thanks!


All times are GMT -5. The time now is 10:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi