Talon SRXs and solenoids in CAN bus not responding

All of my Talon SRX’s and Victor motor controllers are flashing orange (on and off), which means they detect the CAN bus wiring, and so does my PCM (it flashes slowly green). However, when I deploy my code and run Driver Station, I cannot get my solenoid or motor controllers to indicate that any signal is being sent from my joysticks. Here is the code from Teleop and Begin that does not appear to be working.

1 Like

Have you updated the firmware on the Talons? This page has documentation on firmware you will need.
http://www.ctr-electronics.com/talon-srx.html#product_tabs_technical_resources
The each talon individually needs to be updated, and the Roborio needs an update to read the talon information.

All in all, I think you would just need the Phoenix Installer and the Talon SRX Firmware. I am new to LabView and haven’t tried solenoids yet.

2 Likes

Are you getting any errors from driver station? We ran into a similar problem with error 13 because we didn’t update the RIO with the correct libraries from the Phoenix Tuner (which is different from phoenix lifeboat used last year). Also make sure that the Talon SRX and Victor SPX firmware is 4.11 through the tuner.

It looks like in your teleop code you are using wpi motor VI’s for your solenoid, which would of course not work, but should be an easy fix. Also, the strings in teleop for your “Lean Motors” and “Grabber Motors” might have a space before them, though it’s hard to tell. But just as a precaution verify that the strings you are using as a reference are 100% the same.

2 Likes

You are definitely going to have a problem with your solenoid. It needs to be a green solenoid read/set. I believe you were trying to drive a it at 1/2 power but solenoids don’t work that way, they are on or off. If you want to drive them at a lower speed you will need to dial down your regulator or put in a fitting on your piston that allows you to lower the input/output pressure.

Everything else looks good, although not sure why you are allowing your driver and co-driver to run your grabber, and solenoid at the same time. At least that is how I am reading your wiring.

1 Like

I am having a hard time finding where to download the Phoenix Tuner. I feel like it might be in the link Team3740_Storm posted, but I can’t seem to find it…

Nevermind, I got it downloaded, I will tell you if it worked!

Not using Phoenix Tuner was the problem! Thank you! But I do still have a problem with controlling the solenoids, does this block diagram in my begin and teleop look wrong somehow?
SOLSOLENOID%20TELEOP|657x264 ENOID%20BEGIN

SOLENOID%20TELEOP

I notice that in your begin code you never open or start a compressor, where is your solenoid getting the air from? Also, in your begin code an open double solenoid needs three inputs, the two solenoid channels (which you have) and the pcm channel (which you are missing) so that is likely the cause of the error.

1 Like

@Obsideeun you don’t need to open a compressor. One is automatically controlled if you have any solenoid opened. If you want to manually control it (such as disabling it before you do some other task that requires a lot of amperage) is the only reason you need to open it.

The PCM channel is optional and unless they are using 2 PCMs (unlikely) is not causing issues.

Your problem is likely that you want to use the enums to set a double solenoid and not the boolean.

Shamelessly stolen from 358

1 Like

Is the number zero in the index array telling the robot what button will activate the solenoid? If not, where do we assign the button? Our Thrustmaster joystick does not have a button zero as far as I can tell.
Thrustmaster Buttons.pdf (348.4 KB)
Also, Is this a double solenoid or single?
IMG_0890.HEIC (1.3 MB)

Yes the zero means button 0.

Your selenoid is a double but take note that its 24v. What do you have the jumper set to on your pneumatic module?

1 Like

We got pressure! All of this advice has helped more than you know. THANK YOU!!

1 Like

This post explains how the button indexing works. Joystick butons - #5 by Jonathan_L