View Single Post
  #1   Spotlight this post!  
Unread 27-01-2009, 13:02
programmr's Avatar
programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Exclamation Please help Program Relays in WindRiver....

Hello there, i need some help trying to program relays using windriver. Let's just say i want to program a relay plugged into relay 1. When its forward, the motor turns one way, when its reversed the motor goes the other way. I want this to be triggered by a joystick buttons. Forward is button 3 and reverse is button 4. This will be for the "leftStick" Here is the code i have, can anyone help? Please, im somewhat confused on how to program relays.
Attached Files
File Type: cpp BuiltinDefaultCode.cpp (3.8 KB, 69 views)
__________________
"I would love to change the world but no one will give me the source code"