View Single Post
  #5   Spotlight this post!  
Unread 24-11-2015, 12:41
dubiousSwain's Avatar
dubiousSwain dubiousSwain is offline
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
dubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond reputedubiousSwain has a reputation beyond repute
Re: Timing an LDR in C++

Quote:
Originally Posted by heuristics View Post
You'll probably want to use a a state machine and grab samples from your LDR every 20ms or so.
In FRC programming, I've noticed that nine times out of ten, state machines are the way to go
__________________
2015 MAR District Champions