Thread
:
Timing an LDR in C++
View Single Post
#
5
24-11-2015, 12:41
dubiousSwain
The ride never ends
AKA: Christian Steward
FRC #5420 (Velocity)
Team Role: Mentor
Join Date: Oct 2011
Rookie Year: 2011
Location: USA
Posts: 304
Re: Timing an LDR in C++
Quote:
Originally Posted by
heuristics
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
dubiousSwain
View Public Profile
Find all posts by dubiousSwain
Find CD-Media Photos by dubiousSwain
Find CD-Media Papers by dubiousSwain