Thread: Rotating Light
View Single Post
  #1   Spotlight this post!  
Unread 26-02-2002, 05:23
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by Wetzel
Am I correct in that if the OI isn't talking to the RI then the light shouldn't be on? In other words, it can't come on until you are given control.
You're sort of right in that the light doesn't come on until you are given control. However the OI and RC continuously communicate as long as they both have power (assuming they are set up properly with the team number and channel, etc.) The user program you downloaded to your robot even runs the whole time the robot is disabled. You can verify this (assuming you have a yellow dongle (tm) with which you can disable your robot) by putting debug statements in your code. You can see that the RC receives all the inputs from the OI and the analog and digital inputs on the robot. What happens when the robot is enabled, and you gain control is that the data your user program sends in the serout command actually get acted upon. (They are ignored by the master microprocessor as long as the robot is disabled.)
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me