View Single Post
  #8   Spotlight this post!  
Unread 10-03-2003, 17:33
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by pras870
we're using a rocker switch. Right now the code we have is this:

p1_wheel = 0
if p3_sw_aux2 = 0 then p1_wheel = 0
if p3_sw_aux2 = 1 then p1_wheel = 63

since the servo is on PWM 9 we're using p1_wheel variable, but yusing the roboemu program, the wheel on the joystick moves the server but not aux2, any help would be appreciated.

If you email me your code, I'd be happy to take a look. RoboEmu doesn't currently have any known issues that would affect code like the stuff you posted, so it's probably a line somewhere farther down overriding your code. Anyways, let me know. rob-bayer@mn.rr.com
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php