View Single Post
  #2   Spotlight this post!  
Unread 06-02-2013, 20:09
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Creating a class for a new piece of hardware

Neither sensor needs its own class.

The first can use a digital input, the ultrasonic (which won't do what you want) uses an analog input.

Think of the inductive sensor as a switch - it is either on or off. Just using a transistor, not an actual switch.

How about sensing your screw head with an actual lever-type limit switch instead? Or a magnetic reed switch?
__________________

I am N2IRZ - What's your callsign?