Go to Post Difficult? Yeah. Extremely difficult? Some parts. Doable? It's been done. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-11-2016, 18:56
AJWasserman AJWasserman is offline
Registered User
FRC #0706
 
Join Date: Feb 2016
Location: United States
Posts: 4
AJWasserman is an unknown quantity at this point
Victor with Java on roboRIO

Hey everyone,

Our team is revamping our T-Shirt tank with a roboRIO and some fresh code but we are having some problems running the Victors. We wrote the program exactly as we had for our 2016 bot in Java with the only difference being that the 2016 bot used TalonSRX's.

For declaring the motors we tried using the general SpeedController class, the Victor class, and tried using a RobotDrive class as well. We still haven't been able to get any of them to run. We just used a basic motorName.set(1) for the object but when the command containing it is running we still saw no movement or change in the signal LED on the Victor. Is there something different we need to do for the Victors since they are PWM instead of the TalonSRX's CAN bus?

When we replaced the Victors with TalonSRX's on the tank and updated the code accordingly the motors drove fine but we would still like to use Victors for it.

Any help would be greatly appreciated and feel free to let me know if you need any more information.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-11-2016, 09:07
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Victor with Java on roboRIO

Are the Victor's status LED flashing orange/amber the entire time? If it works for the Talons, but not the Victors, then it's almost guaranteed to be a bad Victor (unlikely), bad cable (unlikely), or bad connection between the cable and Victor (very likely).

Victors are notorious for being difficult to insert the PWM cable straight. Make sure your pins are straight and try to insert the PWM connector housing straight down. If that doesn't work, try pushing it at an angle on the flat side to move the pins side to side. Don't force it down.

I've had times where I'm convinced that the Victor/cable/code was bad, and it turns out that it's the connector not seated properly.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #3   Spotlight this post!  
Unread 22-11-2016, 20:21
AJWasserman AJWasserman is offline
Registered User
FRC #0706
 
Join Date: Feb 2016
Location: United States
Posts: 4
AJWasserman is an unknown quantity at this point
Re: Victor with Java on roboRIO

@RyanN I appreciate the response. We tried with 2 different roboRIOs, 3 different Victors, and multiple PWM cables and made sure they were firmly seated in their connectors and still had no luck with the situation so we are convinced it isn't hardware but the code is just basic drive code unless there is some victor specific part we are missing.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-11-2016, 02:30
TylerHarmon TylerHarmon is offline
Registered User
FRC #4499
 
Join Date: Jan 2016
Location: Westminster, CO
Posts: 5
TylerHarmon is an unknown quantity at this point
Re: Victor with Java on roboRIO

Interesting.

That code sounds very simple, so it probably is not the problem, unless it is a simple class name or usage error.

If you haven't already, check to make sure that all components involved have the latest firmware, and double check the Victor's ID in the RoboRIO Web Configuration Tool. Make sure that the ID listed there is the same that you are using in your code, and while you're at it, update the firmware.

Also, try the troubleshooting section on page 4/5 in this pdf. Also, double check the electric wiring and make sure that the transmitter and receiver are powered to ON.

Good luck!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi