Go to Post theres nothing more macho than something made entirely out of diamond plate. - Dan9874123 [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 30-06-2016, 11:11
Coach Seb's Avatar
Coach Seb Coach Seb is online now
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 97
Coach Seb is an unknown quantity at this point
RobotBuilder and first Java code.... help needed

Good morning,
transitioning to Java from Labview. This is our first attempt in setting a practice bot using Java.

We installed Eclipse, Java and all driver stations stuff. So far so good.

We used Robot Builder plugin and create a simple project with 4 motor drive subsystem and a compressor subsystem.

We have Left Front, Left Rear, Right Front & Right Rear. Using Talon SRX with CAN to drive 4 CIMs on the wheeled drive chassis.

I am successful in downloading the code on the roboRIO, enable test mode and open the smartdashboard to test the device. Each motor display as expected on the Smartdashboard.

Left Front and Right Front work just fine. Each one has the PercenVBus selected and we apply percentage using the slider.... motor is moving fwd/bwd as expected....

Left Rear and Right Rear are not moving... The LEDs on the Talon SRX are changing as they should.

I swapped the motors... Left Front became Left Rear.... nothing is moving... LED are working as expected... i see flashing green when we command to move fwd and flashing red when we command bwd....

Kinda stuck on why it behave this way... any idea would be appreciated...

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-06-2016, 11:52
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 285
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: RobotBuilder and first Java code.... help needed

It looks like you have a physical disconnect between your rear motor controllers and your rear motor. I could be wrong, but if the lights are indicating the desired direction, that is the output. Try using a multimeter at various points on the connection between the motor controller and motor to find the problem connection. This doesn't sound like any sort of programming issue. To make sure this theory is correct, you can go into the web dashboard on the Rio (go to roborio-5860-frc.local in Internet Explorer), and run a self test on one of the affected SRXs while you putting the desired control into it.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 30-06-2016, 12:13
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: RobotBuilder and first Java code.... help needed

To verify that hardware is the problem, check the output current of the talon. It should be on the test page, otherwise use the getOutputCurrent method. If the current is zero, you have a bad connection somewhere.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #4   Spotlight this post!  
Unread 30-06-2016, 12:13
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: RobotBuilder and first Java code.... help needed

If you swapped the motors and the problem remains and since the lights on the motor controllers are functioning properly, it means the problem is either in the wiring, most likely the connectors or the motor controller itself. I assume you are using Anderson connectors, you may examine the contacts inside the connectors. Sometimes, the contacts may have slipped out on the controller side. If everything still looks fine, you may want to replace the motor controllers in question.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 04-07-2016, 10:53
Coach Seb's Avatar
Coach Seb Coach Seb is online now
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 97
Coach Seb is an unknown quantity at this point
Re: RobotBuilder and first Java code.... help needed

Thank you everyone... dahhhhh.... wiring issues... its now fix and let's move to the next issues which is controlling with joystick...
Reply With Quote
  #6   Spotlight this post!  
Unread 06-07-2016, 17:01
Ouroboroz Ouroboroz is offline
Registered User
AKA: Kevin
FRC #2554 (The Warhawks)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2014
Location: Edison NJ
Posts: 8
Ouroboroz is an unknown quantity at this point
Re: RobotBuilder and first Java code.... help needed

Quote:
Originally Posted by Coach Seb View Post
Thank you everyone... dahhhhh.... wiring issues... its now fix and let's move to the next issues which is controlling with joystick...
So what exactly is your issue with the joystick?

To use the joystick to move you can either pull axis values from the Joystick or some methods like arcadeDrive directly take the Joystick object as a parameter.
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:13.

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