Quote:
Originally Posted by Nickalahoby
We have a 3 wheeled chassis with no special wheels and are using 4 motors for it.
|
Do you mean three wheels on each side of the chassis, with each side independently controlled with two motors each?
Quote:
Originally Posted by Nickalahoby
So, is the example program for Tank drive usable on its own? I would assume it requires some slight modifications, per say the motor controllers, or what inputs we have such as USB ports. But in whole, are there any major modifications that would need to happen for the base Tank Drive VI to be usable? Also, a slight follow up question; would it be considered illegal to just straight up use the Tank drive sample program?
|
It is legal to use this as is. The default example is written for two motor drive (this is defined in Begin.vi).
Here are two options to get that code up and running with your system
- Use two PWM ports, PWM 0 for one side, and PWM 1 for the other and use a Y splitter to each motor controller
- Switch out the "Open2MotorDrive" with "Open4MotorDrive" and configure it to match the wiring and configuration of your bot
The example also uses a one joystick arcade mode, if you want to customize that you will need to modify which function is called.
Quote:
Originally Posted by Nickalahoby
Second question concerns our only other function, which is a basic pulley lift with one motor. Essentially a positive rotation of the motor would result in the lift moving up, and a negative spin results in a descent. Furthermore, would the program needed to construct a more simple system like this require such a detailed program as how the Tank Drive VI looks?
|
It will depend entirely on how you want to control it. Does a simple joystick axis suffice? Do you want a button for up/down? Do you want to have pre-defined positions for the pulley system? Will you have a sensor on the pulley somewhere? Do you need to control the speed? Will you have limits in place to prevent damage?
How complex your code is will depend on how you want to implement it.