Go to Post "Only YOU can prevent G22 infractions." - Qbranch [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
  #16   Spotlight this post!  
Unread 20-03-2004, 22:54
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: Your testing beacons vs. competition beacons

I've had trouble with the beacons at the Trenton Regional, but my trouble was that the beacons were too strong, not too weak. That and the people running the event were barely aware of "IR beacons" and did not know how to tell me which was beacon Type 0 and Type 1. See my story.

Our trackers seemed to see IR from lots of directions -- reflections -- and the "lock" paradigm of "I'm locked when both sensors see some IR" leads to trackers that lock in almost any direction.

I am trying a new approach outlined in my post here. My current problem is what I call RC "brain farts" -- the printf data occasionally gets corrupted and sometimes one or other tracker may suddenly zip all the way to one end. It's as if something was trampling on memory. I remember reading something Kevin Watson posted about not saving enough context info before each interrupt service. I'll look that up and see if I can apply it, and see if it helps.
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
  #17   Spotlight this post!  
Unread 21-03-2004, 15:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Your testing beacons vs. competition beacons

Funny, I seem to be getting something similar with the gyro. It sometimes increments the counter by 1s and 2s, even with a deadband of 7!
  #18   Spotlight this post!  
Unread 21-03-2004, 16:00
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: Your testing beacons vs. competition beacons

Yeah, you can see some pretty wierd behavior if the context isn't saved properly. It would be nice if the compiler was more intelligent in this regard. Until then, you need to tweak this yourself with a somewhat cryptic #pragma statement that's documented in section 2.9.2 of the compiler user's guide.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #19   Spotlight this post!  
Unread 21-03-2004, 16:25
Steve W Steve W is offline
Grow Up? Why?
no team
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Toronto,Ontario Canada
Posts: 2,523
Steve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond reputeSteve W has a reputation beyond repute
Re: Your testing beacons vs. competition beacons

Shawn see me Monday night. When I was at Detroit I had time to work with the Innovation FIRST guy. We did a lot of testing on the field with their sensor. We found that even when pointing right at 1 beacon that the other beacon was still being picked up. There were areas that both beacons were not picked up but they were random. We even got signals when facing the diamond plate. We also did a test covering the outside emitters with my fingers. After doing this the signals were much more distinct. This may be why they are taping some at other regionals.

For anyone going to a regional and using IR sensors, I would reccomend that you ask for 2 or three practice rounds, spread throughout the day, that only robots with IR are allowed onto the field and that computers can be brought onto field to recieve readings. I don't think that there should be a problem if approached right. Remember when asking to mention that this is something that FIRST wants to see, There are no beacons allowed on site and that the only way that you can troubleshoot is with your laptops.

Good Luck to all!!!!
__________________
We do not stop playing because we grow old;
we grow old because we stop playing.
  #20   Spotlight this post!  
Unread 22-03-2004, 09:41
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: Your testing beacons vs. competition beacons

Quote:
Originally Posted by Kevin Watson
Yeah, you can see some pretty wierd behavior if the context isn't saved properly. It would be nice if the compiler was more intelligent in this regard. Until then, you need to tweak this yourself with a somewhat cryptic #pragma statement that's documented in section 2.9.2 of the compiler user's guide.

-Kevin
Thanks, yeah, I was using the old #pragma. I updated it to the more conservative one you posted here and the brain farts went away.

All: it's the "#pragma interruptlow" in user_routines_fast.c. This is the one to use:

Code:
#pragma interruptlow InterruptHandlerLow save=PROD,section("MATH_DATA"),section(".tmpdata")
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
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
Intrest in Another Competition? Allison K Off-Season Events 4 26-02-2004 19:04
Competition IR Beacon - how does its physical setup compare to our beacons? DanL Electrical 2 25-01-2004 18:05
Looking from a different point at "Fixing" punarhero General Forum 27 18-03-2003 18:41
How well did the regional competition help preparing? archiver 2001 3 24-06-2002 02:33


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

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