Go to Post "Magnificent" is the only appropriate adjective for a handlebar moustache. Kudos. - Lil' Lavery [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-02-2008, 01:05
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Detecting Start of TeleOp Mode

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 Diaz
Former Lead Technical Mentor, FRC 418
  #2   Spotlight this post!  
Unread 26-02-2008, 01:12
Cow Bell Solo's Avatar
Cow Bell Solo Cow Bell Solo is offline
No Stolte No
AKA: Chris
FRC #2194 (Fondy Fire)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Minnesota
Posts: 381
Cow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the roughCow Bell Solo is a jewel in the rough
Send a message via AIM to Cow Bell Solo Send a message via MSN to Cow Bell Solo Send a message via Yahoo to Cow Bell Solo
Re: Detecting Start of TeleOp Mode

you are correct about the 15 sec hybrid, little pause, then 2 min tele.

You shouldn't need to do really any thing in the robot code(or at least I wouldn't think so) If you just have switches or buttons in the comp port(I believe there is a port diagram on ifirobotics), having the auto activated then use the disable one(robot won't move at all during hybrid or tele) then turn that off along with the hybrid swith/button.

That is what I would do, other might see a better way though
__________________
Who let the Blue Smoke Out
Team 2194 Mentor - 2012-Present - http://fondyfire.com
Team 2207 Alumni - http://whitebearlakerobotics.com
Iowa FIRST LEGO League Planning Team Member - 2010-Present - http://www.isek.iastate.edu/fll
FIRST LEGO League volunteer - 2008-Present

2008: MN Regional Quarterfinalists, Website Excellence
2009: MN North Star Quarterfinalists, recognized for safety, Website Excellence
  #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
  #4   Spotlight this post!  
Unread 26-02-2008, 01:30
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: Detecting Start of TeleOp Mode

Quote:
Originally Posted by Kevin Watson View Post
This is how the mode transitions during a round:

Disabled->Autonomous->Disabled->Teleop->Disabled.
Thank you, Kevin! We are certainly using your new code for 2008, but I was just unsure as to how the state machine worked. This is the key we were looking for.

Excelsior!
-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
  #5   Spotlight this post!  
Unread 26-02-2008, 01:37
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
Thank you, Kevin! We are certainly using your new code for 2008, but I was just unsure as to how the state machine worked. This is the key we were looking for.

Excelsior!
-Danny
One thing that may not be obvious, and I'm not sure it makes any difference to you, but Disabled_Init() is only called once during the round.

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


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 12:35.

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