|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
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 |
|
|
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 |