Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   F310 Joystick and Jaguar Problems (http://www.chiefdelphi.com/forums/showthread.php?t=126961)

2185Bilal 20-02-2014 21:34

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

nickmcski 21-02-2014 11:01

Can you post your code on how your getting the joysticks the axis's?

notmattlythgoe 21-02-2014 11:04

Re: F310 Joystick and Jaguar Problems
 
Quote:

Originally Posted by 2185Bilal (Post 1347245)
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?

AlexBrinister 23-02-2014 19:07

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

2185Bilal 25-02-2014 23:24

Re: F310 Joystick and Jaguar Problems
 
Quote:

Originally Posted by AlexBrinister (Post 1348590)
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

AlexBrinister 26-02-2014 12:14

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

dvanvoorst 26-02-2014 12:48

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.

ProgrammerMatt 02-03-2014 20:35

Re: F310 Joystick and Jaguar Problems
 
why not just invert your x axis?

Code:

drive.arcadeDrive(joystick.gety(),-joystick.getX());


All times are GMT -5. The time now is 04:30.

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