36 lines
1.5 KiB
Markdown
36 lines
1.5 KiB
Markdown
The setup_and_radar_selection module handles the housekeeping of starting the radar exhibit.
|
|
|
|
It will use the radar_management_structure, which is in global data, will be used by this
|
|
module to manage what radars are available and which one is selected.
|
|
|
|
The selection of which radars are to be available to the museum visitors is accomplished
|
|
my entering the radars that will be available as parameters of the command for example:
|
|
|
|
radar_simulator chain_home marine_ascope marine_traffic police_boat - all radars
|
|
radar_simulator marine_ascope - only the marine ascope radar
|
|
|
|
Note: if the operator invokes no parameters, then all the radars are to be made available.
|
|
|
|
When the application is started, it will be in a state where no radar is in use. The visitor
|
|
will use the selector to select a radar to operate.
|
|
|
|
The setup_and_radar_selection shall be within the main.cpp file. It shall run in thread 1
|
|
as it accesses the shaders
|
|
|
|
The following is suggested.
|
|
|
|
1. Read the parameters; check to radar management stucture to make sure
|
|
that a selected radar is operatable. If it is, then set available in the
|
|
radar management structure.
|
|
|
|
2. Initialize opengl.
|
|
|
|
3. Put up introduction text on left panel.
|
|
|
|
4. Sit in select loop. Wait for operator to make a selection. If there is only
|
|
one radar available, wait 5 seconds and then go to that radar.
|
|
|
|
5. Run in a loop where every 30th of a second, update the selected radar.
|
|
|
|
======================================================================
|