From 8153055365bf823bd92350147a307164f48850d0 Mon Sep 17 00:00:00 2001 From: Mark Allyn Date: Wed, 3 Jun 2026 07:32:32 -0700 Subject: [PATCH] Add vessel_name and reistration to data tables --- CLAUDE.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 809d22c..ad9af9c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -150,6 +150,8 @@ struct target_data_to_shader_structure { float current_reflectivity; // derivied from vessel_type (see table below) float height_estimate; // derived from vessel_type (see table below) float noiseglint; // derived from vessel_type (see table below) + std::string vessel_name; + std::string registration; int32_t police_boat; // this indicates that the target is for the roaming police boat. 1 = police boat uint32_t mmsi; // AIS unique identifier; ICAO hex address for aircraft int type; // target type (0 for boat 1 for aircraft) @@ -1000,12 +1002,14 @@ Here is the data items for the table in the Postgres database: and that the user may want to update the database. This will not force the user to do the update, a later database editing program will use this. -4. int vessel_type (AIS type code or aircraft type) -5. uint32_t mmsi (unique identification for boat or ICAL for aircraft -6. float reflectivity (derived from target type) -7. float height_estimate (derived from target type) -8. float noiseglint (derived from target type_ -9. int32_t police_boat (this indicates that this is for the police boat - 1 is true) +4. int vessel_type (AIS type code or aircraft type) +5. uint32_t mmsi (unique identification for boat or ICAL for aircraft +6. float reflectivity (derived from target type) +7. float height_estimate (derived from target type) +8. float noiseglint (derived from target type_ +9. std::string vessel_name; +10. std::string registration; +11. int32_t police_boat (this indicates that this is for the police boat - 1 is true) Please note that this database is only for the physical characteristics. Dynamic information which is created by the simulator (or raspberry pis) as that data changes. @@ -1107,6 +1111,8 @@ struct target_data_to_shader_structure { float current_reflectivity; // derived from calculation based on material - is dynamic float height_estimate; // derived from vessel_type (see table below) float noiseglint; // derived from vessel_type (see table below) + std::string vessel_name; + std::string registration; int32_t police_boat; // this indicates that the target is for the roaming police boat. 1 = police boat int type; // target type (0 for boat 1 for aircraft) uint32_t mmsi; // AIS unique identifier; ICAO hex address for aircraft @@ -1129,10 +1135,12 @@ Target Processing suggestion: 3b1a: no - Create database entry. Perform calculation for reflectivity as noted below based on vessel_type, length, type, and beam from the target data structure from the simulator data or raspberry pi data; and then bring over lengh, beam, - altitude, police_boat from the target data structure, and bring over the heigh_estimate, - and noiseglind from the getMaterialProfile calculation above. + altitude, police_boat, vessel_name, and registration from the target data structure, + and bring over the heigh_estimate, + noiseglind from the getMaterialProfile calculation above. 3b1b: yes - bring over, from database, followng: length, beam, - reflectivity, height_estimate, noiseglint, to the memory + reflectivity, height_estimate, police_boat, + vessel_name, registration, noiseglint, to the memory table. This is for the new table created by step 3b. 3b1c: recalculate the current_reflectivity and insert into table; this is dynamic