![]() |
Solenoid Breakout
wiring of the solenoid valves is proper, i do not know if the breakout is using 24 volt power as opposed to 12, however, when defining the Solenoids as such:
Sol1 = new Solenoid(1); should the word Solenoid(after new) be recognized and highlighted or does it remain unlighted. as well as, why would windriver not recognize the joystick command for GetRawButton. It recognizes everything but GetRawButton, therefore, it does not work i must use GetTrigger or GetTop. Ex. if(rightStick.GetRawButton(4)) {Sol1 -> Set(true);} |
Re: Solenoid Breakout
I have found Wind River is a little buggy when it comes to some of the functions for highlighting. As long as the code compiles it is fine
|
Re: Solenoid Breakout
How did you declare and instantiate rightStick? If you dynamically instantiate it such as:
Code:
Joystick *rightStick = new Joystick(n);Code:
if (rightStick->GetRawButton(4)) |
Re: Solenoid Breakout
I declared it as
rightStick(1, 3, 11), leftStick(2, 3, 11), .... also is this stated properly for victors? if ...... {victor1.Set(1.0);} |
Re: Solenoid Breakout
What is with the 2,3,11?
I've always just used (1),(2),(3), etc and it has worked fine. And you cant JUST say rightStick(1). It needs to be declared as a joystick somewhere. Ex: Code:
|
Re: Solenoid Breakout
Quote:
Code:
if (rightStick.GetRawButton(4)) |
| All times are GMT -5. The time now is 13:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi