Update for radar testing and operation and added first component .md file
This commit is contained in:
@@ -39,21 +39,27 @@
|
||||
|
||||
/* radar_management[] is indexed by RADAR_* constants (1-4).
|
||||
* Slot 0 is unused padding so current_radar works as a direct index.
|
||||
* All fields start at 0. Set testing=1 when a radar component is under
|
||||
* active development; set operatable=1 when it is built and tested.
|
||||
* radar_type mirrors the array index for callers that receive a single
|
||||
* struct by value. operatable is set to 1 once a radar is fully built.
|
||||
* available and selected are set during startup argument parsing. */
|
||||
radar_management_structure radar_management[RADAR_COUNT] = {
|
||||
{ 0, 0, 0, 0 }, // [0] unused
|
||||
{ 0, 0, 0, 0 }, // [1] chain_home — not yet built
|
||||
{ 0, 0, 0, 0 }, // [2] marine_ascope — not yet built
|
||||
{ 0, 0, 0, 0 }, // [3] marine_traffic — not yet built
|
||||
{ 0, 0, 0, 0 }, // [4] police_boat — not yet built
|
||||
{ RADAR_NONE, 0, 0, 0 }, // [0] unused
|
||||
{ RADAR_CHAIN_HOME, 0, 0, 0 }, // [1] chain_home — not yet built
|
||||
{ RADAR_MARINE_ASCOPE, 0, 0, 0 }, // [2] marine_ascope — not yet built
|
||||
{ RADAR_MARINE_TRAFFIC, 0, 0, 0 }, // [3] marine_traffic — not yet built
|
||||
{ RADAR_POLICE_BOAT, 0, 0, 0 }, // [4] police_boat — not yet built
|
||||
};
|
||||
|
||||
// No radar selected on startup; intro screen is displayed.
|
||||
// Components: Thread 1, Traffic Cop (Thread 2), all scope renderers
|
||||
int current_radar = RADAR_NONE;
|
||||
|
||||
// Component currently under development (TESTING_* constant).
|
||||
// Initialized from TESTING_COMPONENT in settings.h; change that define and recompile.
|
||||
// When non-zero, no other radars can be made available.
|
||||
// Components: Thread 1 (startup gating), all components
|
||||
int testing_component = TESTING_COMPONENT;
|
||||
|
||||
/* ============================================================
|
||||
* THREAD MUTEXES
|
||||
* Components: all threads as noted per mutex
|
||||
|
||||
Reference in New Issue
Block a user