View Single Post
  #3   Spotlight this post!  
Unread 26-02-2008, 01:24
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Detecting Start of TeleOp Mode

Quote:
Originally Posted by Danny Diaz View Post
My team is developing a custom Dashboard in LabVIEW, and we'd like to be able to have the robot signal to the Dashboard the instant TeleOp mode begins - we want to have a local timer running that should be very very close to the actual field time to give our drivers an extra visual cue that time is running out.

I'm not sure if I'm overanalyzing the problem, but I don't think it's as easy as knowing when the TeleOp routine begins (and hybrid ends). During a game, hybrid mode begins and runs for 15 seconds. Then there's sometimes a pause between the end of hybrid and the beginning of teleop - last year the referees took this time to remove unplaced keepers from robots. During this pause I *think* the robots are in TeleOp mode but they aren't allowed to receive feedback from the driver stations - I just don't know and this is where I was hoping someone here knew. I would like to be able to have the robot code know the instant the radio communications come online and the robots are able to be controlled remotely.

Is this as simple as knowing when the teleop code begins, or is there something a little more crafty required?

Thanks!
-Danny
Danny,

This is how the mode transitions during a round:

Disabled->Autonomous->Disabled->Teleop->Disabled.

If you look at the code (specificially ifi_frc.c/main()) I released for the 2008 game, I took a cut at simplifying the code. You'll want to look at the Teleop_Init() function, which does exactly as you describe. If you're not using my code, you could probably re-structure your code along the same lines.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org