Thread: Autonomous
View Single Post
  #4   Spotlight this post!  
Unread 13-02-2011, 14:38
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,188
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
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
__________________

Last edited by PAR_WIG1350 : 13-02-2011 at 14:41.
Reply With Quote