Go to Post You enjoy your pepperoni pizza, I'll enjoy my cheese and peppers, and we can both agree that people that like pineapple on their pizza, while strange... are completely entitled to their opinions. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
detecting life in batteries wkethman Electrical 5 07-03-2006 08:04
How to Start Autonomous mode? jjbarrow Programming 14 16-01-2006 20:34
Detecting and handling sensor failure gracefully mtrawls Programming 9 20-04-2004 17:19
How do you tell whether your sensor is detecting a crate or the diamond plate? Greg Ross Technical Discussion 4 13-01-2003 19:02
Where to start? MacZealot General Forum 4 12-10-2002 03:27


All times are GMT -5. The time now is 10:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi