Thread: Stall detection
View Single Post
  #15   Spotlight this post!  
Unread 26-03-2013, 23:09
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 531
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Stall detection

Seeing we jam after we shoot, and we shoot when the rpm of the wheel is 5% of the target speed, we condition the jam detection that we have shot, and the wheel encoder is less than 150 rpm. Only allowing to detect when you shoot, masks all of the startup issues.

After the jam is detected, we reverse our flipper motor and shooter wheel. The flipper motor will retrip the home photoeye, and stop the shoot routine. The shooter wheel is run reverse at full power for 1.5 seconds, then allowed go back to normal shoot mode.

Code works, we will test at Livonia in a couple of days if it actually can correct a jam condition.
__________________
The sooner we get behind schedule, the more time we have to catch up.