View Single Post
  #3   Spotlight this post!  
Unread 14-02-2008, 12:43
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,818
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Help Programming Buttons

Quote:
Originally Posted by LordFrz View Post
... p1_sw_trig and p2_sw_trig
Im using easy C
The code you've been looking at is not what you need in EasyC.
A better place to post future questions about EasyC programming is in this sub-forum http://www.chiefdelphi.com/forums/fo...play.php?f=164

You use those variables if you are using MPLAB, so ignore and don't try to use them.

For EasyC use "OI to Relay" under "RC Control" to work your cylinders.
For example, to use the trigger from Joystick Port 2, and the solenoid relay connected to Relay 7, you'll end up with a line of code something like:
Code:
OIToRelay(2,1,7,1);
This example will put the cylinder in one position while the trigger is held, and another when it is not being held.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2008 at 12:55.