View Single Post
  #2   Spotlight this post!  
Unread 29-01-2015, 17:14
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: [Request]Help with Basic Design of Program

Quote:
Originally Posted by Nickalahoby View Post
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 View Post
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
  1. Use two PWM ports, PWM 0 for one side, and PWM 1 for the other and use a Y splitter to each motor controller
  2. 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 View Post
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.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote