|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Here's my problem:
I have an arm that rotates, and inside of it, there is another arm that pokes out. What I wanted to do was use the second joystick to control it. I use p2_y to control the rotation of the arm on pwm04. I use the hat on p2 (p2_wheel) to retract/extend the arm by pressing up or down. In defaultroutine, pwm04 = p2_y. For some reason, the hat will work. It will tell the arm to do what I want it to. The kick in the but comes here: when using dashboard, it tells me that pwm04 is always 127. Sometimes it works, and sometimes it doesn't. It doens't matter what joystick I use, it just randomly decides to work. Anyone else experience this? Should I invest in a new controler? Many thanks. ~Brian Stempin Captain, Team 708 |
|
#2
|
||||
|
||||
|
Re: Inconsistant Joystick
is the command sending Pwm4 out to the dashboard before the command that sets it to the joystick value?
search on pwm4 in your code and make sure its not getting equated to something twice. |
|
#3
|
|||||
|
|||||
|
Re: Inconsistant Joystick
Are you using basicly the default code? Or did you rewrite the Default_Routine? Check below the pwm assignments, and comment out the stuff with pwm04. I had the same problem, and that fixed it. I think its limit switches, but I can't remember.
|
|
#4
|
|||
|
|||
|
Quote:
~Bstempi |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| question about one joystick drive programing | james700 | Programming | 13 | 29-01-2003 14:49 |
| robot goes haywire with the one joystick default code | Miles | Programming | 7 | 24-01-2003 14:58 |
| joystick problem | archiver | 2000 | 12 | 23-06-2002 23:08 |
| switching joystick axis????? | team222badbrad | Technical Discussion | 9 | 16-01-2002 23:07 |