Go to Post I thought Will.I.Am was a Dr. Seuss character - DonRotolo [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
  #2   Spotlight this post!  
Unread 12-02-2007, 14:59
Imajie Imajie is offline
Registered User
AKA: James Letendre
FRC #0195 (Cyber Knights)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Southington
Posts: 114
Imajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud ofImajie has much to be proud of
Send a message via AIM to Imajie
Re: Aux 1 & 2

Assuming you're using EasyC you want to add something like this to your Operator_Control function
Code:
if(GetOIDInput([joystick port], [button]) == 1){
    //Button pressed so drive motor
    SetPWM([port], [value]);
}
else{
    //Button not pressed stop motor
    SetPWM([port], 127);
}
I believe that 3 and 4 are the numbers for the aux1 and 2 but I could be wrong.
__________________
2007 UTC Champions Thanks 1124 and 558
2007 UTC GM Industrial Design Award

2006 Newton Divisional Winners
2006 Championship finalists
(Thanks 25 and 968 for picking us!)
2006 National Innovation in Control
 


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
OI Aux Fault light red Vashts6583 Control System 1 25-01-2006 23:10
pic: Teams 1114, 1503 & 1680; NiagaraFIRST.org Karthik Robot Showcase 15 25-02-2005 13:27
pic: The Bobcats 2001 & 2003 & Admirers CD47-Bot Robot Showcase 19 28-02-2004 12:36
Aux Fuse 3 (Yaw Rate) Josh Hambright Electrical 0 18-02-2003 08:22
More than 2 aux switches in 1 port f22flyboy Programming 2 01-11-2002 14:44


All times are GMT -5. The time now is 00:21.

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