Go to Post Well, we put it in the bag at 11:58 last night. Needless to say we had to pull guys off of it to put it in the bag. I hope we didn't miss somebody and bag him up too. - jimwick [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 18-02-2005, 08:29
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Joystick Button programming

Hi guys,
I have run into a sort of stupid problem. I can't get the buttons on the joystick to work.
Code:
 if (p1_sw_top ==1)
 {
 pwm01=200;
 }
Even something simple like that wont work. I tried this also:
Code:
 //Somewhere in the top of the file
 int output =0;
 
 //Down in the file
 output = p1_sw_top;
 if (output = 1)
 {
 pwm01=200;
 }
Any help/advice?
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
 


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
Programming motors with joystick buttons TMHStitans Programming 5 21-03-2005 21:07
Joystick Button Deference cibressus53 Electrical 3 01-11-2004 09:38
single joystick programming Bill Bonsky OCCRA 2 04-10-2003 09:47
Programming the second joystick in PBASIC archiver 2001 2 24-06-2002 00:25
Arm Rotation (1 Button Programming!!) Joelster Technical Discussion 1 14-02-2002 13:15


All times are GMT -5. The time now is 17:54.

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