|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: Limit Switches help.
What it looks like the original poster wants to do is limit the motion of a motor based on whether a limit switch is active.
It looks like you want the motor to go only in reverse (less than 127) when that switch is active. I'm not too good with C, but in pbasic, you'd use the MAX and MIN declarations, e.g. p1_y = p1_y MAX 127 MIN 0 I'm not sure if there is an equivalent in C, or how it would be implemented, but I think that's what you'd be looking for- to set that condition when the switch is enabled. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Raising the $3500 limit? | Eric Bareiss | General Forum | 25 | 01-04-2004 03:15 |
| Limit switches | Team168 | Programming | 8 | 10-02-2003 16:22 |
| Team selector switches on ISAAC | Lloyd Burns | Robotics Education and Curriculum | 0 | 17-12-2002 08:32 |
| Need help with custom switches | archiver | 2001 | 3 | 24-06-2002 00:35 |
| Wiring custom toggle switches into operator interface | DanL | Electrical | 9 | 13-02-2002 17:13 |