View Single Post
  #94   Spotlight this post!  
Unread 25-01-2009, 10:01
Lord Byron's Avatar
Lord Byron Lord Byron is offline
Registered User
AKA: Tim Sebek
FRC #0538 (Dragon Slayers)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Alabama
Posts: 33
Lord Byron is an unknown quantity at this point
Re: Implementing Traction Control for an advantage in the 2009 game

Quote:
Originally Posted by Charlie_A View Post
Hi, i'm a rookie programmer this year, our team has gone with LabView. I was just wondering if anyone could explain to me how to filter the joystick to limit acceleration, and/or how the how the filtering will effect the acceleration.

Thanks in advance,
Charlie
I used case structures in between the joystick subVIs and the drive VI. I believe I had one case structure to determine if the joysticks were at their "relaxed" position, then one to determine whether it was in a positive or negative position (foward and backwards), and finally one to determine if the output was equal to the input. Inside the last case structure, it the output was less than the input, it increases it by a constant value some each cycle of the while loop. There may be an easier way to do this, but this setup works exactly as we need it to.
__________________
You have a ramen doctor in your secret ramen base!?!