|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Request]Help with Basic Design of Program
Hi, this is my first time posting here, and my first time using these forums, first time using Labview, first time making a program for Labview FRC, and First time being on FIRST. Just to give you an understanding of what I already know; I can understand the basics of how Labview works, with the Vi's and wiring. However, I'm not entirely sure how the Vi's need to be wired together or what needs to be included in a program for it to be a completed function for the robot to utilize.
My first question concerns the drive system my team has decided to use(Tank Drive). We have a 3 wheeled chassis with no special wheels and are using 4 motors for it. 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? 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? If anymore details are required, I would be more than happy to give them. If I'm asking a bit too much or asking something wrong, I apologize; being that this is my first year, and my team's first year, I'm not too sure of much of anything. Thanks in advance! |
|
#2
|
||||
|
||||
|
Re: [Request]Help with Basic Design of Program
Quote:
Quote:
Here are two options to get that code up and running with your system
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:
How complex your code is will depend on how you want to implement it. |
|
#3
|
|||
|
|||
|
Re: [Request]Help with Basic Design of Program
Our chassis is 3 wheels on each side with 2 motors controlling each side, so 6 wheels total, and 4 motors total. Didn't realize I kinda half clarified that.
And our lift system is going to be controlled by 2 buttons, with Button "A" making the lift system go up at a specified rate, and Button "B" makes the lift descend at a specified rate. So in essence, we have 2 inputs controlling the output of one motor, one causing a negative turn, the other a positive turn. Thanks for the clarification on the other parts I addressed as well. |
|
#4
|
|||||
|
|||||
|
Re: [Request]Help with Basic Design of Program
Quote:
What you really ought to do is to replace the Arcade Drive block in the Teleop vi with a Tank Drive block. You'll need to add the second Joystick Open to the Begin vi, and the second Joystick Get Values to Teleop, using what's inside the example's While loop as a guide. |
|
#5
|
|||
|
|||
|
Quote:
Here's your plan: ScreenSteps: https://wpilib.screenstepslive.com/s/4485 https://wpilib.screenstepslive.com/s...p-test-program FIRST, NI, and WPI have handed you a working robot (THANKS TO YOU ALL). Work through the tutorials. After step 6 in tutorial 4, you have a working arcade drive robot. Keep burningthrough the tutorials and you will be able to set up tank drive, and other, more dangerous things.Start NOW and don't slow down. Read ScreenSteps at every opportunity, and search Chief Delphi for anything. It will probably be there. Good Luck and Have Fun! Tim |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|