View Single Post
  #28   Spotlight this post!  
Unread 09-02-2017, 15:25
kprzewodek's Avatar
kprzewodek kprzewodek is offline
Registered User
AKA: Kevin Przewodek
FRC #0862 (Lightning robotics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2000
Location: Michigan
Posts: 62
kprzewodek is on a distinguished road
Re: 2017 Bosch Seat Motor

Quote:
Originally Posted by chesterm View Post
We have noticed the loss of counts also. In our case it appears to do well when speed is at 50% or less. Going above that led to increasing loss of counts. We are planning on a home switch to re-zero counts every time our tilt returns to the up position. Haven't tested it yet, but I expect it to work out ok.
I wonder if the frequency of checking might be the problem. 20 RPM free speed is 1/3 rev/s with 175 pulses per rev = ~60 pulses per second. If your frequency of checking is any less than that you'll probably miss counts. Not sure how your program is checking but if you have other calculations happening at the same time it might be part of the problem. Keep in mind I don't have much knowledge of FRC code. Best solution in that case is just the mentioned zero each cycle or count separately on an Arduino or the like.
Reply With Quote