Help Us

http://www.chiefdelphi.com/media/photos/my/
If you could look at these pictures and tell us whats wrong

Edit: just saw the pictures posted in the thread

As far as I can tell, your solenoid code looks all right. Could you be more specific on exactly what you’re having trouble with?

One thing to note is that the Motor Set Output VI expects a floating-point value from -1.0 to 1.0 , where -1 is full reverse, 0 is stop, and 1 is full power forwards. You seem to be giving it an integer from 0-255, which probably won’t work the way you are expecting it to. Any value higher than 1 will be interpreted as full power forwards.

You open joystick 1 and joystick 2, but only use joystick 1. You don’t show Periodic Tasks, so I can’t tell if the Compressor code is in place and using the correct string.

You are also using last year’s template. This will be fine, but it is more difficult to delete the camera stuff if you aren’t using it.

Did you have specific issues you wanted help to understand?

Greg McKaskle

Thanks for the numerical range! That was something I have been searching for, but have yet to find.
Our problem is that when we attempt to test the code, we receive no response from the robot, yet the diver station reports no errors. Currently, we are searching for a wiring malfunction.

Here is periodic tasks. We have not programmed anything onto the second joystick because we had an issue where the values of other joysticks were misread.

http://www.chiefdelphi.com/media/photos/39991

I’m pretty sure for a double solenoid, you need to actually tell it forward or backward, not just true or false. You can do this by using the selector and a couple constants.

you can also use the selector for your motor values which can be numbers from -1 to 1, not 0 to 255

Yeah I’m pretty sure you need to define direction of a single solenoid. It’s a constant on the ‘Set’ block.