Made corrections to radar managment to add testing

This commit is contained in:
2026-06-10 09:14:19 -07:00
parent 1898a2e17a
commit e923dc2c42
2 changed files with 58 additions and 0 deletions

View File

@@ -32,6 +32,28 @@
#include "include/data_structure_and_constants.h"
/* ============================================================
* RADAR MANAGEMENT
* Components: Thread 1 (startup, scope switching), Traffic Cop (Thread 2)
* ============================================================ */
/* 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.
* 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
};
// No radar selected on startup; intro screen is displayed.
// Components: Thread 1, Traffic Cop (Thread 2), all scope renderers
int current_radar = RADAR_NONE;
/* ============================================================
* THREAD MUTEXES
* Components: all threads as noted per mutex