|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I have found the example of the tank drive program, but i am having a hard time figuring out how to make it for 4 motors insted of two. Any help??
|
|
#2
|
||||
|
||||
|
Re: Help with programing Tank Drive in Lab View
You probably want to do that with hardware and not software because if you are using a gear box or if you are direct driving motors. You would not want to drive 2 motors on one side in revere directions.
If you wanted to do it with hardware it is just as simple as using a pwm splitter. You would plug in each side to pwm 1 and 2 then you would plug those into 4 speed controllers. Let us know if you want to do it with just software for some reason. |
|
#3
|
||||
|
||||
|
Right now i am just testing the electronics borad
so software would be a better help but thanks for the sugestion |
|
#4
|
||||
|
||||
|
Re: Help with programing Tank Drive in Lab View
As far as I know the simplest way would be to replace the "Open 2 Motor" function with and "Open 4 Motor function". The function can be found by opening your function palette and going to: WPI Robotics Library > RobotDrive and selecting "Open 4 Motor".
![]() And then obviously you would have to add constants for the other two motors on the Open 4 Motor function and make sure you have the right PWM's to the right slots. (Pressing ctrl+h to bring up context help and hovering over the Open 4 Motor function should help you figure out what goes where) Hope that helps! - Austin Last edited by TotalChaos : 18-01-2009 at 19:51. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tank Drive with Advanced Framework in Labview | finman | NI LabVIEW | 4 | 30-01-2009 13:35 |
| Lab View | Schotty57 | Programming | 5 | 02-04-2008 20:24 |
| Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | Idaman323 | Programming | 3 | 18-02-2005 15:17 |
| Calculus Students: Need Help with Precalc Lab | Jaine Perotti | Math and Science | 13 | 25-12-2004 23:32 |
| Major problems with tank tread drive | Lord Nerdlinger | Technical Discussion | 13 | 23-02-2004 21:15 |