Go to Post Either you have it hooked up wrong, or you have the Battery of the Gods. Probably filled with Mountain Dew... - nighterfighter [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 13-02-2004, 20:44
Richomundo's Avatar
Richomundo Richomundo is offline
Mascot
AKA: Richie Knight
#1115 (Deus Ex Machina)
Team Role: Programmer
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Santa Monica, California
Posts: 19
Richomundo is on a distinguished road
Send a message via AIM to Richomundo Send a message via Yahoo to Richomundo
problem with joystick buttons (top left one)

we are having a problem with the top left black button next to the FOV mini joystick on the joystick that FIRST has provided us.
our top right button works however....

i'm thinking maybe we dont have the correct variable. here is our code:::

/* 2nd joystick open globe motor arms */
if (p2_sw_aux1==1)
{pwm01 = 200; }
else if (p2_sw_aux2==1)
{pwm01 = 55; }
else {pwm01=127;}

the else if statement is where i think the problem is but I'm not entirely sure.
help would be helpful.
THANKS
love, richie
__________________
I got the mic and you got the moshpit
 


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
Victor problem Andy Baker Electrical 15 24-06-2003 09:49
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59
joystick problem archiver 2000 12 23-06-2002 23:08


All times are GMT -5. The time now is 15:31.

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