Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=91676)

dmitch 12-02-2011 22:16

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?

bladetech932 13-02-2011 00:21

Re: Autonomous
 
You use constant values in place of where you would normally wire the joystick axis

Alan Anderson 13-02-2011 14:18

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?

PAR_WIG1350 13-02-2011 14:38

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);
}

this particular piece of code would increase speed for the first half of autonomous, and decrease it for the second half

Wolfgang 13-02-2011 20:51

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.


All times are GMT -5. The time now is 09:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi