Go to Post Most of us are pretty friendly. - StephLee [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 20-02-2014, 21:34
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
F310 Joystick and Jaguar Problems

So I am having a few difficulties programming the robot in java this year.

so my first problem is that I am using acrade drive on our robot, so the left y axis on the f310 is the forward/backward and the right x axis is the rotation axis. But we have a problem, when I press forward it goes forwards but when we try to turn left it goes right. Any possible reasons, solutions?? thanks

Also another problem we have is the our left jaguars (connect to our motors that control our left side) for some reason flash red, when connected and enabled while the right jaguars are normal. The most confusing part is that the left jaguars still work flawlessly but that red light is for some reason there. Solutions, comments, etc thanks

thanks for the help
__________________
RAMAZOIDZ

2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2014, 11:01
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 111
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Can you post your code on how your getting the joysticks the axis's?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2014, 11:04
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: F310 Joystick and Jaguar Problems

Quote:
Originally Posted by 2185Bilal View Post
So I am having a few difficulties programming the robot in java this year.

so my first problem is that I am using acrade drive on our robot, so the left y axis on the f310 is the forward/backward and the right x axis is the rotation axis. But we have a problem, when I press forward it goes forwards but when we try to turn left it goes right. Any possible reasons, solutions?? thanks

Also another problem we have is the our left jaguars (connect to our motors that control our left side) for some reason flash red, when connected and enabled while the right jaguars are normal. The most confusing part is that the left jaguars still work flawlessly but that red light is for some reason there. Solutions, comments, etc thanks

thanks for the help
Are they always flashing red? What happens when you try to turn right? Does it turn left? What do you consider "normal" for the lights?
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2014, 19:07
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: F310 Joystick and Jaguar Problems

Are you using closed-loop control? Check the forward and reverse limit switch jumpers on the Jaguars. If those are not properly set up, the Jaguar will flash steady red.

Alex Brinister
Reply With Quote
  #5   Spotlight this post!  
Unread 25-02-2014, 23:24
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
Re: F310 Joystick and Jaguar Problems

Quote:
Originally Posted by AlexBrinister View Post
Are you using closed-loop control? Check the forward and reverse limit switch jumpers on the Jaguars. If those are not properly set up, the Jaguar will flash steady red.

Alex Brinister
could u expand on that, however i dont think its the actual hardware thats the problem.

We tried inverting our drive system, so the left talons controlled the right side and the right talons the controlled the left side, we noticed it was only on the left jaguars.

so example if the talons are numbered 1,2,3,4 (1,2 = left, 3,4 = right). talon 1,2 would blink red and 3,4 are good. when inverted (1,2 = right, 3,4 = left) 3 and 4 are the ones blinking

so i have feeling that it might be the program, but i dont see anything in the code that might be ticking these red lights
__________________
RAMAZOIDZ

2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
Reply With Quote
  #6   Spotlight this post!  
Unread 26-02-2014, 12:14
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: F310 Joystick and Jaguar Problems

When you enable closed-loop control on the Jaguar, it expects input from a sensor (either an encoder of some kind or an analog sensor of some kind like a potentiometer). Optionally, you can use normally-closed limit switches to act as hard stops for the Jaguar. You can wire these to the Forward and Reverse limit switch ports on the Jaguar. Since the switches need to be normally closed, jumpers need to be placed on the Jaguar so that it reads a closed position. If you don't have jumpers plugged in but are using closed-loop control without limit switches, it will go to blinking red because it detects a limit switch fault condition.

Also, for your first problem with the wrong direction for everything. If you invert your values, it will work. Put a negative in front of your speeds.

Alex Brinister
Reply With Quote
  #7   Spotlight this post!  
Unread 26-02-2014, 12:48
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: F310 Joystick and Jaguar Problems

You're intermingling motor controller terminology (Jaguars and Talons). It's important to know which you are actually using. I'm guessing you actually have Talons since you mentioned them also.
An uncalibrated Talon can flash red (or green) when it's just sitting there because it's slightly out of calibration. You should go through the calibration process for each Talon and see if that takes care of your issue.
Basically press and hold the calibrate button on the Talon, then run your controller full forward and full reverse a couple of times, then release the calibrate button.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2014, 20:35
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: F310 Joystick and Jaguar Problems

why not just invert your x axis?

Code:
drive.arcadeDrive(joystick.gety(),-joystick.getX());
__________________
2015-2016 CSA
Software Engineering Student @ Johnson & Wales University
Team 228, Gus Robotics Inc.
Facebook
FLL Mentor for 1107, Edison Eagles!
2015- CT State Champions
2012- WPI Finalist(Thanks 1884 and 549), Spirt, Best Website
2011- WPI Chairman's award winners!
2010- WPI Champions! (thanks 230 & 20), WPI Engineering Inspiration, CT Best Website, CT VEX Champions (VRC228, VRC228b) (21-1-0)
2009- QCC VEX Champions (VRC228) (11-0-0), Innovate Award (VRC228)
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 22:40.

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