View Single Post
  #1   Spotlight this post!  
Unread 03-02-2008, 10:48
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Danger in Disconnected IR Receiver

I've been concerned about the inherent dangers inadvertently introduced by Team Update #6's ruling that the IR Receivers must be physically disconnected from the robot while in the Pit.

The intent is admirable, however, the execution method is dangerous.

Every programmer should be aware that a physically disconnected IR Receiver will look to the code as if every IR command has been simultaneously selected.

The danger of course is that if your code simply checks to see if a pin is ==1, then you'll begin executing the first command you check. If you plan to use the IR in Teleop mode, then your robot will take off as soon as you turn it on in the pit. If you use IR only in Hybrid mode, then your robot will take off as soon as the Competition Port Auto switch is thrown.

Please design your code to check for and reject multiply selected IR commands.

P.S. And stand clear of the team in the next pit who won't test this ahead of time and will find out the hard way Thursday morning of the Regional.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2008 at 12:08. Reason: mistyping