Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Arcade Drive AND motor-drive (http://www.chiefdelphi.com/forums/showthread.php?t=99939)

gaurav.agashe 12-01-2012 16:00

Arcade Drive AND motor-drive
 
Hello,

How can I use the same two motors (at PWM1 and PWM2) with the Open-2motors and Arcade Drive vi's in Teleop, as well as with the Motor-Open and Motor-SetOutput vi's in autonomous?

I want to be able the command each motor independently in autonomous mode to increase distance/straight-line accuracy (aided by encoder feedback).
But in Teleop we have no need for the encoders, so I want to stick with the simple and easy-to-use ArcadeDrive vi.

Any suggestions?

Thanks!

flameout 12-01-2012 16:31

Re: Arcade Drive AND motor-drive
 
I'd just use the tank drive VI (can't remember the name -- been 2 years since I did FRC LabVIEW -- Tank Drive?) in autonomous. It functions exactly like 2 Motor-SetOutput VIs would.

Greg McKaskle 13-01-2012 07:43

Re: Arcade Drive AND motor-drive
 
While this is possible, using the Open Existing Motors version of Robot Drive, I don't really think it is necessary. I think you want to use the encoders difference to set the X of the Arcade. Scaled and possibly using other control terms.

Greg Mckaskle


All times are GMT -5. The time now is 09:37.

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