Add radar management

This commit is contained in:
2026-06-10 09:06:01 -07:00
parent 12418abf51
commit 1898a2e17a

View File

@@ -378,5 +378,70 @@ Thread 5 = Raspberry pi data recever = this receives the data from the raspberry
================================================================================
RADAR STATUS INFORMATION AND CONTROL
The curent exhibit proposal has four discrete radars:
Chain Home : Radar developed by United Kingdom for defending
the south west coast (Vetnor) from attacks from the continent.
It is called chain_home. All variables and function names and
shader names shall be prefixed with "chain_home". For this exhibit,
it's location is at RAF Vetnor (Isle Of Wight) at:
Decimal Degrees (Latitude / Longitude): 50.600° N, 1.183° W
Marine A-Scope : Manually Pointable Radar used by United Kingdom to
discover germain submarines when they come up to charge their batteries.
It's key feature is a microwave dish antenna that is manually pointed
by the operator using a servo control to electrically rotate the
microwave dish antenna. This radar preceded the development of
the modern Plan Poing Indicator radars of todky. All variables and
function names and shader names shall be prefixed with "marine_ascope"
For this exhibit the location is on a boat moored at the dock of the
Community Boating Center (not movable) at:
latitude \(48.70529^{\circ}\text{ N}\) and longitude \(-122.50547^{\circ}\text{ W}\)
Marine Traffic Control PPI Radar : This is a PPI radar using the plan position indictor.
This is a more powerful stationary radar that is used for marine traffic control. The Coast
Guard uses them.
All variables, function names, and shader names shall be prefixed with "marine_traffic".
For this project, the marine traffic control radar is located
in the center of Bellingham Bay at:
latitude \(48^\circ 43' 25" \text{ N}\) and longitude \(122^\circ 34' 35" \text{ W}\)
Marine Radar On Police Boat : This is a PPI radar that is located on a police boat. The purpose
of this radar (which behaves the same as the Marine Traffic Control Radar) is to demonstrate
to the museum guest how a radar scope changes as a bost moves and changes direction. It is lower
power than the Marine Traffic Control PPI Radar.
All variables, function names, and sharder names shall be prefixed with "police_boat".
This radar and boat shall be moveable like any other target.
For this exhibit, the starting location, when
the exhibit is started, is at the dock at the end of Tayor Street and the Boulevard Park
boardwalk at:
8.7253874° N latitude and -122.5077482° W longitude.
Selection and availability of the radars:
The museum operator, upon startup of the exhibit shall be able to select which radars are to
be avaailable for use by the museum visitors. This selection shall be via passing parameters
when starting the exhibit.
The operational status for each radar shall be noted by a variable indicating whether the
radar is working within a global data structure.
The currently selelction of which radar is currently operating shall also be noted by a global
data structure.
Here is a suggested global data for managing the radars:
struct radar_management_structure {
int operatable; // 1 is yes, 0 is no
int available; // 1 is yes, 0 is no - this is the one controled by the exhibit owner
int selected; // 1 is currently operating, 0 is not operating
};
int current_radar; // 0 is none; 1 is chain_home; 2 is marine_ascope; 3 is marine_traffic; 4 is police_boat
===========================================================================