Quote:
|
Originally Posted by Idaman323
Okay, so we got his code from Salad
Code:
If your motor was hooked to pwm01 you'd use...
Limit_Switch_Max(rc_dig_in01, &pwm01);
Limit_Switch_Min(rc_dig_in02, &pwm01);
Where in the code would you put this? And is this all you would need to get it to work properly?
|
I don't exactly know why that code wasn't working for us (although it's probably something stupid and obvious that I'm missing) but all it was doing was slowing down our motors when they hit the limit switches instead of stopping them. If someone would please clear that up it would be greatly appreciated by me and I'm sure by Idaman as well.
NOTE: Yes, our speed controllers are calibrated.