Go to Post Measure it with a micrometer, mark it with chalk, and cut it with an axe. This is not an exact science. - Jim Meyer [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
  #6   Spotlight this post!  
Unread 03-02-2008, 19:22
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: Programing joystick buttons

Quote:
Originally Posted by ShotgunNinja View Post
In EasyC, you could do it in about 6 lines of code.
I'm surprised it takes that much. In MPLAB, it is just four:
Code:
if(p1_sw_top)
   pwm01 = 254;
else
   pwm01 = 127;
or five:

Code:
if(p1_sw_top){
   pwm01 = 254;
} else {
   pwm01 = 127;
}
depending on your coding styles.

p1_sw_top is the top button on CH flightsticks and, I believe, one of the buttons on the top of the AVB Top Shots. I think the thumb button is either another trigger or top button... the wiring in those AVB sticks is darn confusing.
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
 


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
Buttons to Pins on Joystick yarb65 Electrical 1 24-08-2007 20:39
Programming Extra Joystick Buttons Inverted Programming 2 08-02-2007 11:45
Victors Controlled By Joystick Buttons douglass1371 Electrical 2 17-02-2006 01:57
Programing a joystick Justin_302 Programming 2 21-03-2005 22:45
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59


All times are GMT -5. The time now is 17: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