Go to Post It's not pink enough, I don't beleive it! :p - Lil' Lavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2010, 21:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Quote:
Originally Posted by Greg McKaskle View Post
On the other hand, it would be best if your resource usage would be robust in case the field starts in tele disabled, say, then goes to auto-disabled before the match. Little glitches like this are not that unusual.
I'm counting on the field starting in Teleoperated disabled. That's how it has always been in the past, and that's the only way information from the Driver Station can get to the robot before Autonomous begins.

(In the pre-cRIO days, it was not possible for the state to be both Autonomous and Disabled simultaneously.)
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2010, 21:21
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Quote:
Originally Posted by Alan Anderson View Post
I'm counting on the field starting in Teleoperated disabled. That's how it has always been in the past, and that's the only way information from the Driver Station can get to the robot before Autonomous begins.

We'll have to get to the bottom of this one ... I don't know why they'd start us up in TeleOp Disabled if Auton is the mode that we switch to when the gun goes off.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2010, 21:21
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Hmm. I didn't know about the field before 09. And since I cannot be sure about the field code, I'd say your better odds are on what Alan is saying. On the other hand, I'm certain that the practice match behaves as I described. Of course you can easily flip there from Tele.

Also, you should verify independently, but this year, the robot communications code automatically latches the joystick state and the I/O state before transitioning to Auto Enabled. This acts as both a filter to ensure no joystick inputs drive the robot, and to make it simpler for teams to access their switches and joystick throttles, etc.

Greg McKaskle

Last edited by Greg McKaskle : 06-02-2010 at 21:28.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2010, 14:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Quote:
Originally Posted by Greg McKaskle View Post
Also, you should verify independently, but this year, the robot communications code automatically latches the joystick state and the I/O state before transitioning to Auto Enabled. This acts as both a filter to ensure no joystick inputs drive the robot, and to make it simpler for teams to access their switches and joystick throttles, etc.
That's a fundamental change to the way Autonomous mode has handled operator input since it was introduced. Is there some official documentation for that behavior, or should it be considered oral tradition?

If the automatically latched values are indeed something we can count on, implementing code to select autonomous options is now much simpler.

As for joystick values etc. being passed to the robot in Autonomous Disabled, that too contradicts the long-understood condition that Driver Station inputs are not available during Autonomous. Again, is there an official description that tells us how it really works now?

Lest it seem otherwise, I'd like to point out that I'm very happy to know this. I'm only concerned because I don't know how I would have found it out if I hadn't been making reading the Chief Delphi forums a priority.
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2010, 22:19
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Very good questions. I'm not sure how the old system was documented, and I'm not sure who's documentation should call this out. But since this change is backwards compatible, it seemed like a simplifying change that still avoids any joystick direction during auto, but instead of zeroing fields, it latches.

If you have an idea of where to add the documentation so that teams will find it, we can provide the technical details.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2010, 03:37
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Quote:
Originally Posted by Alan Anderson View Post
I'm counting on the field starting in Teleoperated disabled. That's how it has always been in the past, and that's the only way information from the Driver Station can get to the robot before Autonomous begins.

(In the pre-cRIO days, it was not possible for the state to be both Autonomous and Disabled simultaneously.)
I'm pretty certain that the FMS will start the round in Auto Disabled. control inputs are sent to the robot during Auto Disabled. Only during Auto Enabled are the control inputs filtered.

Quote:
Originally Posted by Ziaholic View Post
We'll have to get to the bottom of this one ... I don't know why they'd start us up in TeleOp Disabled if Auton is the mode that we switch to when the gun goes off.
Exactly... which is why the FMS starts in Auto Disabled.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2010, 09:43
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

As a side note, unless you modify Robot Main.vi, it doesn't matter if it starts in Auto Disabled or Telop Disabled, as they both call Disabled.vi.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-02-2010, 09:57
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: TeleOp Init/Stop vs. Auton-Iterative Init/Stop

Quote:
Originally Posted by Joe Ross View Post
As a side note, unless you modify Robot Main.vi, it doesn't matter if it starts in Auto Disabled or Telop Disabled, as they both call Disabled.vi.
Exactly. ... I assumed that Alan's concerns were because his team may not be using Labview, and then that double-state (either/or) case structure wouldn't apply to him. I have zero insight into the C++ or Java frameworks, so I don't know if they provide that "either-or" case like we have in LV.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
Reply


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
adding a second joystick to TeleOp Init smcmahon NI LabVIEW 14 17-02-2009 20:43
the E-Stop Greg Needel Rules/Strategy 10 13-04-2003 22:13
Wierd basic init Jeremy J Programming 5 06-02-2003 11:42
Basic Init Error yan184 Programming 5 14-12-2002 13:10


All times are GMT -5. The time now is 11:49.

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