|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Quote:
|
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
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. |
|
#7
|
||||
|
||||
|
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 ?
|
|
#8
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Termination resistors are present in a few control system components required on the robot. One such device is the RoboRIO, and the other is in the Power Distribution Panel. When wiring the CAN bus, it is a good practice to start the bus at the RoboRIO, add Talon SRX controllers and a Pneumatic Control Module (if required), then end the chain at the PDP. On the PDP itself, there is a small jumper that can set the termination resistor on or off, depending on if it is on the end of your CAN network.
|
|
#9
|
||||
|
||||
|
Re: Need help, talon srx labview coding
Alex stated that he updated the firmware and assigned proper ids to the devices, this would indicate the can is wired, and working.
Seeing the current code is only working with one motor "arm", yet you have mulitples wired, can you check with the webpage, "Flash LED" and make sure your arm motor is wired to the srx you that is that you assigned for arm. Were you able to check the begin.vi terminals? |
|
#10
|
|||
|
|||
|
Re: Need help, talon srx labview coding
Quote:
Last edited by Team5860-Alex : 03-02-2016 at 18:34. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|