View Single Post
  #1   Spotlight this post!  
Unread 21-04-2004, 02:50
Xufer's Avatar
Xufer Xufer is offline
8 Seasons and as stable as ever
AKA: Working, 2/4 degrees complete still schooling...
FRC #1740 (The Cyber Colonels)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Waterford, CT
Posts: 231
Xufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to beholdXufer is a splendid one to behold
Send a message via AIM to Xufer Send a message via MSN to Xufer Send a message via Yahoo to Xufer
Exclamation Limit Switches help.

I know that there is a section on limit switches in the defualt FRC code, but i have tried to use that section many times and failed so what i was wondering was if anyone had written there own limit switch code or could explain to me the process of how i could write one. I will be using digital inputs to limit speed controllers.

pseudo example
Code:
if (rc_dig_in01 == 1)
{ joy_1 <= 127;}
else
{joy_1 == joy_1;}
Its just a basic limit switch I really dont know why they gave me so much trouble. But i have everything happen from losign all joystick - motor interactivity to having everything work like the senosr wasnt tripped. I was just wondering if someone could give me an example or a pointer, i know its a stupid question but its been stumping me. Now i have time to ponder and experiment.
__________________


If saftey is first and i put FIRST ahead of everything, then i must be the safest guy in the world.

Team 521 Alumni -- Team 1740 Mentor-- Go Go 1740!
Sometimes I think I've been doing this too long and other times I think I haven't done this enough... but all the times I'm sure I'm crazy
Photonics, It's Your Future