Go to Post Seeing a bunch of teams from Indiana and probably Michagin competing at the same time.... If I wanted to see that, I'd just go to the Championship in Atlanta. :yikes: - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2004, 22:57
bstempi bstempi is offline
Captain
#0708 (Hardwired Hatters)
Team Role: Student
 
Join Date: Feb 2004
Location: Horsham, Pa
Posts: 23
bstempi is an unknown quantity at this point
Send a message via AIM to bstempi
Question Inconsistant Joystick

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   Spotlight this post!  
Unread 18-02-2004, 23:03
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
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   Spotlight this post!  
Unread 19-02-2004, 07:30
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
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   Spotlight this post!  
Unread 19-02-2004, 09:50
bstempi bstempi is offline
Captain
#0708 (Hardwired Hatters)
Team Role: Student
 
Join Date: Feb 2004
Location: Horsham, Pa
Posts: 23
bstempi is an unknown quantity at this point
Send a message via AIM to bstempi
Lightbulb Re: Inconsistant Joystick

Quote:
Originally Posted by Astronouth7303
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.
Truth, when I did that, it worked. That was the only time it worked. After that, it went back to behaving as before, but I'll be sure to double check it. It's possible that someone changed the code without my knowing. Other than the limit switch default stuff, pwm04 isn't used anywhere else. Just out of curiosity, should the limit switch stuff matter? I browsed through it and haven't taken the time to pick it apart, but I thought the default was set so that a certain set of pwms didn't operate is a digital input was set to 1. Thank you both for your input.
~Bstempi
Closed Thread


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

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


All times are GMT -5. The time now is 03:58.

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