View Single Post
  #1   Spotlight this post!  
Unread 14-02-2012, 21:44
Zero_Viscosity Zero_Viscosity is offline
Registered User
FRC #3344
 
Join Date: Feb 2012
Location: Fayetteville Georgia
Posts: 5
Zero_Viscosity is an unknown quantity at this point
Post DoubleSolenoid programming

Hello Forum, we are a relativley experienced team but this is my first time programming with windriver. I have previous experience in C++.

Anyways, I've written code for the solenoids to extend when a button on the controller is pressed. Unfortunatley, when the corresponding button is pressed, nothing happens. I don't have the code infront of my now, but this is about how it looks:

Code:
if(controller.GetRawButton(1))
solenoidName.Set(solenoidName.kForward);
else
solenoidName.Set(kOff);
The code compiles and builds without any warnings or errors. The cables are plugged in to their correct ports and the code most likely has those ports entered correctly.
Any help would be greatly appreciated as I am very confused.
Reply With Quote