|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Autonomous
Where do I place the arm movement code for our autonomous? I know its in the autonomous vi but where and/or how do I place it?
|
|
#2
|
||||
|
||||
|
Re: Autonomous
You use constant values in place of where you would normally wire the joystick axis
|
|
#3
|
|||||
|
|||||
|
Re: Autonomous
Where and how you place your arm control depends on what you want the arm to do, when you want the arm to do it, and what else is happening in autonomous.
What do you want the arm to do? When do you want the arm to do it? What else is happening in autonomous? |
|
#4
|
||||
|
||||
|
Re: Autonomous
Or you could use variables that vary based on how many times a loop has cycled.
I don't know labview stuff but in c++ it would look something like this. Code:
double virtualStick;
for (int i=0; i>-1; i++)
{
virtualStick=-(i-7.5)(i-7.5)+1;
virtualStick/=2;
virtualStick+=.5;
//arm code here [using virtualStick in place of joystick values]
Wait(1.0);
}
Last edited by PAR_WIG1350 : 13-02-2011 at 14:41. |
|
#5
|
|||
|
|||
|
Re: Autonomous
If the autonomous code you received from FIRST followed the line and stopped after a while, try creating a sequence structure. The first frame should be around the autonomous code given while the second frame will be where your arm code will be.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|