|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
FRC Joystick throttle problems
My team is using the throttle on the Attack 3 joystick for our kicker speed control, but for some reason it's only returning -1, 0, or 1. Never anything else, despite being an analog input. Anyone else have this problem?
We're passing it to a Victor (also, does anyone know the values a victor takes in? I can't find them anywhere) after a bit of math to convert it. |
|
#2
|
|||
|
|||
|
Re: FRC Joystick throttle problems
I believe Victors work the same as jaguars, a value between -1 and 1. Are you looking at the output directly from the joystick? The problem could be in your conversion code
|
|
#3
|
||||
|
||||
|
Re: FRC Joystick throttle problems
Do they now. My mentor was under the impression is was 0 - 255. That would explain some of our problems. Can you/anyone confirm that? I don't have any hardware to actually test on right now
![]() By the way, we're switching from LabVIEW to C++ for nationals, so it's kind of... urgent that we figure all this out. |
|
#4
|
|||
|
|||
|
Re: FRC Joystick throttle problems
Both the Victor and Jaguar class implement the same MotorController interface which defines the use of the Set function, so I'd assume they take the same inputs (and I'm 100% sure it's -1 to 1 on jags)
The 0-255 confusion is probably from the IFI system. I've never used it personally, but apparantly that is how the pwms on that board were controlled (no floating point capabilities on IFI) |
|
#5
|
||||
|
||||
|
Re: FRC Joystick throttle problems
Quote:
And yes, it used to be 0 to 255 on the IFI control system. Refer to the help docs that come with WindRiver (I believe it's C:\WindRiver\docs\extensions\something). The return types and such are all in there. |
|
#6
|
|||
|
|||
|
Re: FRC Joystick throttle problems
Quote:
|
|
#7
|
||||
|
||||
|
Re: FRC Joystick throttle problems
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Joystick Throttle | ctcw | Java | 2 | 15-12-2009 19:11 |
| Help with programing saitekx36f joystick and throttle | sonicx059 | Programming | 4 | 21-01-2008 20:30 |
| Joystick problems | Golfer241 | Technical Discussion | 3 | 14-02-2006 16:35 |
| Joystick Problems | anupalsingh | Programming | 0 | 23-02-2004 17:50 |
| Joystick problems | archiver | 2001 | 3 | 24-06-2002 02:40 |