|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#13
|
|||
|
|||
|
Re: Limit Switch Draws Tears
The digital input is one, or zero.
Don't count on the code handled by the final else statement to ever get executed. if (Dig1->Get() == 0) { jag1->Set(0.0); jag2->Set(0.0); jag3->Set(0.0); jag4->Set(0.0); } else if(Dig1->Get() == 1) { jag1->Set(-leftstick->GetY()); jag2->Set(rightstick->GetY()); jag3->Set(-leftstick->GetY()); jag4->Set(rightstick->GetY()); } else { jag1->Set(-1.0); jag2->Set(1.0); } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| limit switch | solomason519 | Programming | 9 | 09-02-2010 08:50 |
| Using a limit switch to limit motion | ManicMechanic | Programming | 16 | 20-12-2007 00:54 |
| limit switch | wedellm | Electrical | 4 | 16-02-2007 13:01 |
| Limit Switch Basics | JWSnedden | Programming | 6 | 30-11-2006 19:48 |