Go to Post Simply. Minimize. Reduce. It's a good engineering rule, and an even better management one. - Tom Line [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 19-02-2007, 00:01
GuitarManiac511's Avatar
GuitarManiac511 GuitarManiac511 is offline
Programmer
AKA: Joshua Miller
FRC #1959 (Aye Robot)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Columbia, SC
Posts: 3
GuitarManiac511 is an unknown quantity at this point
Send a message via AIM to GuitarManiac511 Send a message via MSN to GuitarManiac511 Send a message via Yahoo to GuitarManiac511
Re: Need pnuematics Idea Critique please help!

To capture the press event, you need one global variable and another var that can be local or global (doesn't matter). For my example, I will use the trigger of joystick on port 3. the [] means to use a block. I may not use the correct names for them, but you should get the gist of it...

Global:
int TrigWas;

Local:
int TrigIs;

...
TrigIs = [IOAnalog(3, 1)];
if (!TrigWas & TrigIs)
{
// Trigger was pressed...
}
TrigWas = TrigIs;
...


As for the rest of the coding, I'm not sure what your trying to do...
 


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
Need critique of programming idea and info!!! Asheron Pneumatics 2 18-02-2007 11:21
Need Help w/ pnuematics programming idea!!! Asheron Programming 0 18-02-2007 03:17
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 22:18.

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