|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#12
|
|||||
|
|||||
|
Re: Limit Switchers Logic Problem
What you want to do is:
- If no limit switches are pressed, do whatever the joystick says. - if left limit switch is pressed, two cases: a.If joystick wants to move lazy susan left, keep motors at 0. b.If joystick wants to not move or move right(or the "else" case for a.), do as joystick wants. - if right limit siwthc is pressed, two cases: a.If joystick wants to move lazy susan right, keep motors at 0. b.If joystick wants to not move or move left(or the "else" case for a.), do as joystick wants. - if both limit switches are pressed ( ), stop motors - sirious error! (or someone is cheating )There's a way where you can put all of these in one big case structe, and in each case ("true" and "false") have another case structre with "true" or "false". |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fuzzy Logic? | skidmarks | NI LabVIEW | 1 | 25-01-2009 09:36 |
| Limit Switch Problem | Boydean | Programming | 3 | 13-02-2008 16:32 |
| Using a limit switch to limit motion | ManicMechanic | Programming | 16 | 20-12-2007 00:54 |
| Logic Question | aubinhick990 | Website Design/Showcase | 2 | 11-03-2006 16:45 |
| Why I hate Logic | EnderofDragon | Chit-Chat | 2 | 19-02-2002 21:02 |