View Single Post
  #6   Spotlight this post!  
Unread 18-02-2005, 11:48
Thadanator's Avatar
Thadanator Thadanator is offline
Program/Electric/Driver/Website/etc
AKA: Walking Disaster
#1188 (Oaktown Crewz)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Royal Oak, MI
Posts: 11
Thadanator is an unknown quantity at this point
Send a message via AIM to Thadanator
Re: Joystick Button programming

have you tried doing this?
Code:
 if (p1_sw_top ==1)
 {
 pwm01=200;
 }
pwm01=200;
what i mean is, RIGHT after the button code, you make it go foward anyway.
this way, if there's anything that would change pwm01's values, you will know, because the robot will still not move. if it does move, well then move on to another solution.
__________________

1188 - Oaktown Crewz
Programmer, electrician, website, driver, and of course builder.
¤ It aint no thang but a chicken wang ¤
</Stupidness>