View Single Post
  #3   Spotlight this post!  
Unread 18-02-2005, 23:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Victors controlled with joystick Buttons

The "problem" is that the hat is not a joystick. Use the Dashboard program to see what analog values it provides on the wheel input. I don't have the actual values handy at the moment, but ours is something like 95 for down, 255 for up, and 43 for center. Left and right have specific values too. You can also detect simultaneous left/down and right/down if you want to, but the up resistor is of low enough value that it overpowers the left and right and always gives 255.

(I don't think the default code does anything with that value, though. I suspect your joystick just needs to be recentered with the little trim control to the right on the base, and you're actually moving the joystick itself when you try to use the hat.)