Go to Post That settles it, no questions left. Water game. - 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 23-03-2011, 16:12
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

Is there a way for us to know in the software if the FPGA is finished determining the gyro bias?
__________________
-
An ounce of perception is worth a pound of obscure.
  #2   Spotlight this post!  
Unread 23-03-2011, 16:27
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,567
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: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by Chris Hibner View Post
Is there a way for us to know in the software if the FPGA is finished determining the gyro bias?
In LabVIEW, the gyro bias is done in the open, and is blocking. When the open returns, the bias calculation is done. In Java, the gyro bias is done in init gyro, and is also blocking.
  #3   Spotlight this post!  
Unread 26-03-2011, 18:57
Jogo Jogo is offline
Registered User
FRC #0353 (Pobots)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2007
Location: NY
Posts: 83
Jogo is on a distinguished road
Re: Help the field crew, reset your gyro in autonomous

We were out of control a couple matches because of moving the robot while turning it on. This confuses the gyro, because it considers the voltage during this moment an angular rate of zero. As far as I can tell, the only safe work around is to not turn the robot on until it is still.
  #4   Spotlight this post!  
Unread 26-03-2011, 19:21
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by Chris Hibner View Post
Is there a way for us to know in the software if the FPGA is finished determining the gyro bias?
On the C++ side, it takes about 6 seconds from the time the gyro is instantiated to the time that it is done with its calibration. You can actually see the calls to the task wait function in the WPI gyro code. One idea that we have is to turn on an LED after the calibration is complete.
  #5   Spotlight this post!  
Unread 26-03-2011, 19:48
BornaE's Avatar
BornaE BornaE is offline
Registered User
FRC #0842 (Formerly 39)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Gilbert, Arizona
Posts: 359
BornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant futureBornaE has a brilliant future
Re: Help the field crew, reset your gyro in autonomous

It would be fantastic if the fms had an initialization mode that runs for 15 seconds before autonomous starts.

This way the gyro and all the other sensors and need standstill calibration can be calibrated in that period.

So the robot can be turned on and any point. when the robots are all ready and aligned, They "start" the match by triggering the init sequence using the fms, countdown 15 seconds and then the match start.


Any comments on this approach for next year?
obviously it cannot be implemented this year.
__________________
-Borna Emami
Team 0x27
  #6   Spotlight this post!  
Unread 26-03-2011, 21:12
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by BornaE View Post
It would be fantastic if the fms had an initialization mode that runs for 15 seconds before autonomous starts.

This way the gyro and all the other sensors and need standstill calibration can be calibrated in that period.

So the robot can be turned on and any point. when the robots are all ready and aligned, They "start" the match by triggering the init sequence using the fms, countdown 15 seconds and then the match start.


Any comments on this approach for next year?
obviously it cannot be implemented this year.
I think putting your code in the disabled loop could possibly work to have this effect?
  #7   Spotlight this post!  
Unread 26-03-2011, 23:37
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by Dave Scheck View Post
On the C++ side, it takes about 6 seconds from the time the gyro is instantiated to the time that it is done with its calibration. You can actually see the calls to the task wait function in the WPI gyro code. One idea that we have is to turn on an LED after the calibration is complete.
We're considering adding a gyro for backup heading. We were thinking of putting in an LED to let us know when the calibration is complete, but we weren't sure if there's anything in LabVIEW that tells us when it's complete (i.e. how do we know when to turn on the LED?). The signal light on the robot won't start flashing until after Begin.vi is finishes, so I'm thinking that once the signal light starts flashing, the gyro calibration is complete. We'll have to test that out at the school.

As a backup, I'm considering doing it the old fashioned way - just reading the analog voltage and doing our own bias and integration.
__________________
-
An ounce of perception is worth a pound of obscure.
  #8   Spotlight this post!  
Unread 27-03-2011, 12:52
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,661
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

The "other" solution to this is to spend less time lining the robot up. Our programmers told me about this, then told me about waiting 20-30 seconds after the robot was turned on to move it, or even place a tube on it. I told them we'd be shooed off the field if we were just standing around waiting for the bot to initialize.

So our drivers eventually got lining up the 'bot down to ~10-15 seconds. Worked well enough for alignment.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
  #9   Spotlight this post!  
Unread 27-03-2011, 12:58
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by Chris Hibner View Post
We're considering adding a gyro for backup heading. We were thinking of putting in an LED to let us know when the calibration is complete, but we weren't sure if there's anything in LabVIEW that tells us when it's complete (i.e. how do we know when to turn on the LED?).
Joe mentioned above that the gyro open is a blocking call. Could you wire the output of that (or use one of those fancy flow blocks..I'm a Labview n00b ) to something that activates the LED?
  #10   Spotlight this post!  
Unread 27-03-2011, 14:10
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Help the field crew, reset your gyro in autonomous

Quote:
Originally Posted by Dave Scheck View Post
Joe mentioned above that the gyro open is a blocking call. Could you wire the output of that (or use one of those fancy flow blocks..I'm a Labview n00b ) to something that activates the LED?
Yeah, I know that now - before Joe's answer I didn't know if it was a parallel task.

As it turns out, since the gyro open is blocking, I shouldn't need to do anything. The default code flashes USER 1 LED in PeriodicTasks.vi. PeriodicTasks.vi won't run until Begin.vi completes. So... as long as open gyro is done in Begin.vi (which is where it should be), USER 1 LED will not start flashing until the gyro cal is complete. Yea for simplicity.
__________________
-
An ounce of perception is worth a pound of obscure.
  #11   Spotlight this post!  
Unread 27-03-2011, 14:18
Vikesrock's Avatar
Happy Birthday! Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Help the field crew, reset your gyro in autonomous

I just had a thought that I figured I would throw out there.

What about using a Driver Station input to trigger the Gyro Open in Autonomous Disabled? Then the gyro bias can be calculated during team introductions.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #12   Spotlight this post!  
Unread 27-03-2011, 14:41
boomergeek's Avatar
boomergeek boomergeek is offline
Registered User
AKA: Mr. D (Dick DiPasquale)
FRC #0241 (Pinkerton Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Derry, NH
Posts: 191
boomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant futureboomergeek has a brilliant future
Re: Help the field crew, reset your gyro in autonomous

This is an important issue as more teams are using the gyro.

We are thinking of adding a relatively quiet but noticeable buzzer that will turn on for 8 seconds- the last 2 seconds we will use to initialize the gyro.

If the field crew is moving the robot when the buzzer sounds, they know they have a few seconds to stop moving the bot- if they don't, they at least know that they should reset the cRIO.
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


All times are GMT -5. The time now is 03:55.

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