|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Official Beacon Tracking Code Posted
I've posted the official IR beacon and IR beacon tracking and navigation code that was used at the kick-off here: http://kevin.org/frc. The folks at IFI will also be posting the code on their website. If you have questions about the code, please leave 'em here and I'll try to keep up
.-Kevin |
|
#2
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Thanks Kevin,
Do we run this in the EduBot RC as a separate system? Is anyone able to convert this to Pbasic so I can run it on a Parallax BOE? |
|
#3
|
||||||
|
||||||
|
Re: Official Beacon Tracking Code Posted
Quote:
|
|
#4
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin |
|
#5
|
|||||
|
|||||
|
Re: Official Beacon Tracking Code Posted
Quote:
|
|
#6
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Official Beacon Tracking Code Posted
I haven't read up yet on this, but where can we find what materials we will need to actually emit the waveforms?
|
|
#8
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Can you please describe the beacon waveform?
|
|
#9
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin |
|
#10
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
Hmmm... I might have to look into the whole triangulation thing. Last edited by Rickertsen2 : 12-01-2004 at 23:21. |
|
#11
|
||||
|
||||
|
Re: Official Beacon Tracking Code Posted
Quote:
-Kevin |
|
#12
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
Quote:
Kevin, Thanks for the link explaining that the system uses BOTH beacons instead of ONE. I guess it finally clicked. I had trouble understanding how to manuever both directions ( left and right )using using a single "line of sight" source. My trig skills havn't been used in 20 years so I hope the students can help us out with triangulation. I am still a little confused why 4 receiving LEDS are used and not 2, 1 for each beacon. ?? -Phil |
|
#13
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
I'm trying to fully understand the code and working with the External ISRs first. It seems their sole purpose is to measure the amount of time of the active low pulse, categorize it as beacon 1 or 2, and then update Sensor_Stats[0].Beacon_Count[n] accordingly. Beacon 0 pulses every 1 MS and Beacon 2 pulses every 2 MS.
SO: SENSOR #1 Sensor_Stats[0].Beacon_Count[0] increments a running count of pulses from beacon 1 Sensor_Stats[0].Beacon_Count[1] increments a running count of pulses from beacon 2 SENSOR #2 Sensor_Stats[1].Beacon_Count[0] increments a running count of pulses from beacon 1 Sensor_Stats[1].Beacon_Count[1] increments a running count of pulses from beacon 2 SENSOR #3 Sensor_Stats[2].Beacon_Count[0] increments a running count of pulses from beacon 1 Sensor_Stats[2].Beacon_Count[1] increments a running count of pulses from beacon 2 SENSOR #4 Sensor_Stats[3].Beacon_Count[0] increments a running count of pulses from beacon 1 Sensor_Stats[3].Beacon_Count[1] increments a running count of pulses from beacon 2 Ideally counts for beacon #1 should be incremented 26 times for beacon 1 and 13 times for beacon 2 when the Timer_1_Int_handler runs Every 26.2MS, Timer_1_int_handler subtracts the "last" running count of pulses from the "new" running count of pulses to determine the number of pulses that occured over the last 26.2MS perion. SO: Sensor_Stats[0].Beacon_Quality[0] = Number of pulses that sensor #1 received from beacon 1 that occurred during the last 26.2 MS Sensor_Stats[0].Beacon_Quality[1] = Number of pulses that sensor #1 received from beacon 2 that occurred during the last 26.2 MS Sensor_Stats[1].Beacon_Quality[0] = Number of pulses that sensor #2 received from beacon 1 that occurred during the last 26.2 MS Sensor_Stats[1]Beacon_Quality[1] = Number of pulses that sensor #2 received from beacon 2 that occurred during the last 26.2 MS Sensor_Stats[2].Beacon_Quality[0] = Number of pulses that sensor #3 received from beacon 1 that occurred during the last 26.2 MS Sensor_Stats[2].Beacon_Quality[1] = Number of pulses that sensor #3 received from beacon 2 that occurred during the last 26.2 MS Sensor_Stats[3].Beacon_Quality[0] = Number of pulses that sensor #4 received from beacon 1 that occurred during the last 26.2 MS Sensor_Stats[3].Beacon_Quality[1] = Number of pulses that sensor #4 received from beacon 2 that occurred during the last 26.2 MS End result is: The values held in the element Beacon.Quality[n] are the number of pulses from each sensor that occurr every 26.2MS where n = beacon #1 or #2. These values are updated every 26.2MS AND There are 4 sensors index by Sensor_Stats[n] where n = of of 4 sensors Ideally Beacon.Quality[n] should be contain 26 for beacon #1 and 13 for beacon #2. Is this basically what's happenning in receiver.c ?? Sorry to be so "anal" but I like to fully understand how the code works in order to understand the entire system and move on to understanding tracker.c and then navigate.c where the rubber meets the road. All this while trying to work out out an approach to manage current and software optomization of a 4 motor drive system. I guess my weekend is shot. -Phil Last edited by Phil Roth : 17-01-2004 at 12:16. |
|
#14
|
|||
|
|||
|
Re: Official Beacon Tracking Code Posted
Quote:
Kevin, Is there a "Theory of Operation" or White paper available to explain how this all works? I am assuming that type-0 operates on one side of the field and type-1 operates on the other side. Is this correct? Also, is the waveform chart on your website accurate? I assume that the pulse repetition interval's (PRI) are fixed as depicted on the chart. Thanks, Steve... |
|
#15
|
|||||||||
|
|||||||||
|
Re: Official Beacon Tracking Code Posted
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
.-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is your most prefered programming language? | Hailfire | Programming | 156 | 19-01-2005 21:42 |
| InfraRed autonomous code ... | mtrawls | Programming | 1 | 11-01-2004 00:25 |
| Autonomous code | PBoss | Programming | 7 | 14-01-2003 15:29 |
| Does your team use the Default code. | Jeff McCune | General Forum | 2 | 09-01-2003 14:46 |
| Patent source code? | Kyle Fenton | Chit-Chat | 3 | 20-10-2001 17:53 |