|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Need help, talon srx labview coding
the drive train is working however the other motors are not even though we referred to the software manual to make the code and don't know the issue. We dont see anybody else experiencing this issue so if anybody could help.
https://www.dropbox.com/sh/quwlwd2kl...hpl8WvUEa?dl=0 |
|
#2
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Hi Alex. Welcome to Chief Delphi.
Maybe start with what you are observing versus what you are expecting? |
|
#3
|
|||
|
|||
|
Re: Need help, talon srx labview coding
We are getting blinking orange, no response, on any motor controllers other than the working drivetrain (blinks green/red with throttle)
|
|
#4
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Hello,
Can you answer these questions first? 1. Are your Talon SRX motor controllers set up in CAN mode (each motor controller serially hooked up) or with PWM (each motor controller connecting directly to the roboRio? 2. Do you have the other motors opened up in Begin.vi? 3. What buttons do you have mapped to each of the other motors? 4. Can you take a screenshot of each of the following: Begin.vi, Teleop.vi, and Finish.vi? (This is purely selfish, as I don't currently have Labview to be able to open your block diagram.) |
|
#5
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Quote:
2)We have 8 total mcs wired but cant even get that single motor code to work 3) we dont have any motors mapped to buttons but another joystick instead 4) https://www.dropbox.com/sh/xkx3czbkt...3DNXCvWsa?dl=0 |
|
#6
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Without confirming with our programmers, I believe your motor constants are not correct in Begin.vi. Instead of '0', '1', ours read 'PWM0', 'PWM1' etc. from a drop-down list-box constant. The number corresponds to the CAN ID of the talons. Best way I found to do a constant is to right-click the input terminal of the vi and select 'create constant'. That way you're ensured that the correct type is created.
|
|
#7
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Quote:
Quote:
Have you gone through and given each Talon a unique ID through the RoboRIO webpage? They may all still have the default ID set. From what I can tell, your code looks good and should do what you want it to. |
|
#8
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Quote:
|
|
#9
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Sounds like something on the CAN bus isn't communicating correctly. Could you explain how you have your Talons wired on the CAN bus just as a sanity check? There could be a bad crimp somewhere after your second Talon, or the termination resistor could be in the wrong position.
|
|
#10
|
||||
|
||||
|
Re: Need help, talon srx labview coding
In your begin.vi, can you check and see if your CAN constants are wired to the right input terminal.
If you used the labview "broom" (last icon on the top icon button menu) to clean up the diagram, you may see that the can id constant is wired to the "master id device number" as opposed to the "device number" The master id device number is used if the mode is selected to slave. |
|
#11
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Cecil, I believe we do not have the termination resistor you are referring to. Is this an extra components to add to the CAN network ?
|
|
#12
|
||||
|
||||
|
Thank you guys for your help !!!! Alex
Mentioned that he believe one of the answer made sense and he went to our lab to test... He just text me that it worked !!!! Im sure he will be posting his results here in a minute.... Smart kid !!! |
|
#13
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Good to hear! Good Luck this year.
|
|
#14
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Glad to hear that it worked. I was just about to post that the code looks good, so it must be hardware! =)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|