Commit Graph
15 Commits
Author SHA1 Message Date
db9979andClaude Opus 5.5 7a5f94a3c2 Save v14: shared chart plot tools (marks, ruler, bearing lines, circles, DR/CPA)
- src/core/plot.py: strict, bounded plot layer (64 objects, 24-char labels),
  chart geometry (bearing/distance, DR position, CPA to own ship)
- uConsole: P toggles plot mode on the Bridge/Weapons/Helo map and OPZ chart;
  M/R/B/C/D tools, arrows/click + Enter, Backspace (Shift: clear), Esc
- Remote Crew: common "plot" projection (field "shape"), plot_add/remove/
  relabel/clear for every station, collapsible plot panel on the map
- Saved as the new root field "plot" (save v14 only; v13 rejected)
- Help, manual (reference chapter) and EN/DE catalogs updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 14:43:41 +02:00
db9979andClaude Opus 5.5 8bbd60aa7b Save v13: operator catalog assignment; manual TAS side; DEMON band, heterodyne, crew overview
- Save format v13 (u-jagd-save-v13): sonar contacts carry the operator's
  catalog assignment (player_profile) and the chosen towed-array side;
  v12 and older documents are rejected without migration.
- F8 contact analyser: Enter assigns the browsed profile to the selected
  sonar contact, Shift+Enter clears it; shown in the contact list and on
  the web (Contacts tab assign button, sonar row field).
- Towed-array left/right is the operator's decision: X shows the other
  side, Shift+X confirms (broadband/fusion pages); an own turn no longer
  resolves it silently, a wrong confirmation stays mirrored.
- Shift+F selects the DEMON carrier band, Ctrl+F the heterodyne shift
  (uConsole and web).
- Web: crew automation overview for all stations (as uConsole F3).
- AGENTS.md/READMEs, manual EN/DE, help keys updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 13:07:40 +02:00
db9979andClaude Opus 5.5 89bf5be59c Visual consistency: theme tokens for UI chrome, web colour and type scale
- pygame: panel, overlay, selection, alarm and active-tab colours are theme
  tokens (standard and high contrast); weather status colours follow the
  theme at draw time.
- Web: every one-off hex colour is a named token; NATO affiliation colours
  are shared tokens read by app.js; one heading scale for panel, card and
  instrument titles; near-duplicate font sizes on the xs/sm/md scale.
- Regression test keeps the stylesheet token-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 11:14:02 +02:00
db9979andClaude Opus 5.5 af178338e8 Web/uConsole parity and a hidden raid alert removed
- OPZ: CIWS release projected and settable from the browser (opz_set_ciws).
- Navigation projection carries the turn radius; the web Bridge shows it,
  systems down and threat track references.
- Web chart draws bearing rays from the measuring platform (buoy, dip,
  logged HFDF), as the role map does; sonar rays now appear too.
- Web shows TAS payout/handling window, ESM ambiguity, TMA bearing rate.
- uConsole radio HFDF page lists logged bearings (with observer position)
  and cross-fixes (1 sigma, age) like the Remote Crew radio.
- No "raid incoming" alert: it was derived from the hidden raider
  namespace, i.e. it named an air contact hostile.
- Direct-fire browser test expects the effective radar range (weather),
  matching the deliberate sweep length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 10:15:26 +02:00
db9979andClaude Opus 5.5 6b227afc9b Operator TMA: hypothesis, residuals and explicit acceptance
- The automatic solver only proposes (training aid); no contact receives a
  TMA fix until the operator accepts one.
- TMA page: Z/X course, Ctrl+Z/X speed, Q/Shift+Q range on the newest
  bearing; amber predicted-bearing curve, residual strip, RMS/trend/fit/
  observability; K accepts, Shift+K copies the solver proposal (training).
- Fit test on systematic residuals (segment means against autocorrelated
  noise); acceptance requires an own-ship manoeuvre and no residual trend;
  noisy bearings give a larger range uncertainty.
- Accepted fixes are dead-reckoned on course/speed until they age out.
- Remote Crew: hypothesis/evaluation/residuals/proposal in the sonar
  projection, TMA form and commands (set, accept, copy proposal).
- Manual EN/DE, help keys, smoke test acts as the operator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 09:56:47 +02:00
db9979andClaude Opus 5.5 634e26bcb3 Operator assistance setting and manual acoustic analysis tools
- New preference operator_assist (off by default / training), display and
  projection only; a test proves it never changes the simulation.
- LOFAR/DEMON: free frequency cursor (Z/X), K marks the fundamental or the
  DEMON shaft/blade lines (blade count and RPM from the operator's marks),
  Q integration 2 (FFT)/8/16/64 s, Shift+Q 20 Hz vernier at native 0.5 Hz,
  Ctrl+Z/X free band-pass edges, Shift+N notch at the cursor.
- Off: no automatic peak labels, received-line lists, DEMON blade-rate/RPM
  proposals, catalog ranking or "low evidence" verdicts (uConsole and web).
- ESM off: unranked library range lookup instead of scored platform
  candidates; radar type, threat and range estimate left to the operator;
  C cycles the library in name order.
- Remote Crew: tool state, integrated spectra and vernier in the sonar
  projection; new sonar commands; EloKa candidates may be unscored.
- Manual (EN/DE), help keys and abbreviations updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 08:50:31 +02:00
db9979andClaude Opus 5.5 8fc3fe86cf NATO symbols: no frame for unknown affiliation (uConsole and web)
The hexagonal unknown frame cluttered the picture; unknown contacts now
show only the domain glyph in the unknown colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:56:09 +02:00
db9979andClaude Opus 5.5 1a13d5ce5e Real-time only, measured threat cues, status ticker, text fitting, web NATO symbols
Previously uncommitted work: the game always runs in real time (no pause
or time acceleration), web client fixes (plot smoothing, spectrum peak
labels shared with the uConsole), regenerated contact-analysis images,
docs and manual updates.

UI/realism review, phase 1 (no truth leaks):
- Sonar CIC domain follows only the operator classification; new TORPEDO class.
- Torpedo alarm from intercepts only (launch transient, HF seeker pulses),
  used by Bridge, Autocrew and the web Bridge threat block.
- ASM cue from measured speed/altitude or a jamming strobe; CIWS/ESSM/ECM
  resolve missiles through their own M- tracks.
- HFDF fixes publish no domain; lookout domain needs recognition.
- No "hostile ping"/"submarine sunk" reports: breaking-up noises on a
  bearing; score only in the debrief.
- Helicopter layer shown only after the dome passed it; web Bridge gets
  published rows only.

Phase 2 (uConsole screen and text):
- Status ticker (default) frees 158 px; F11 event log/telemetry overlay
  (display only); docked band selectable in the options.
- Layout helpers fall back to catalog abbreviations (<key>.short) before
  any ellipsis; feed wraps, ticker scrolls; zero truncations EN/DE.
- Localised telemetry and OPZ affiliation/domain codes, bounded map labels.

Web: role map and chart draw NATO affiliation frames with domain glyphs.
Tests: truth boundary, text fit, session-wide preferences isolation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 06:52:32 +02:00
db9979andClaude Opus 5.5 b0398d052f Bridge lookout: visual classification and "Bridge lookout" reports
The lookout now reports sightings in up to three steps (Johnson criteria
with binocular gain, scaled by silhouette size): sighted, class (merchant,
warship, carrier, fishing vessel, speedboat, surfaced sub, airliner,
military aircraft) and type (cargo, tanker, passenger, tug, frigate,
destroyer, corvette; warship/military aircraft class name). Classes are
derived from existing catalog keys/categories, so v12 saves and the
catalog snapshot stay valid; the class rides on the saved lookout track
label and is validated on load.

Reports appear as AUSG feed lines ("Brücke/Ausguck: Fregatte ... in 040°"),
torpedo wakes and surfaced subs with a banner, "land in sight" per
landmass. OPZ and chart tooltips show "Lookout: ..."; the web bridge gets
visual_class/visual_type on tactical rows and a bounded sightings list.
Observations only: no operator classification or affiliation, no merchant
names, live traffic indistinguishable. Manual EN/DE, i18n, protocol docs
and tests updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 14:19:32 +02:00
db9979andClaude Opus 5.5 99ccf9b7c7 Web maps: mouse-over tooltips; wrecks on the web OPZ chart
The Remote Crew role map and the large chart now describe what is under
the cursor, like the native stations: tracks (label, source,
classification and affiliation, bearing/range, course/speed, altitude,
age/quality), sonar fixes, own ship, assets and waypoints, charted wrecks
and rocks, airbases, or else the chart position with charted depth and
bearing/range from own ship. The tooltip is filled with textContent,
ignores touch and drags, and hides on leaving the map. The large chart
also draws the charted hazards. Web help lists map mouse-over and key 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 13:19:55 +02:00
db9979andClaude Opus 5.5 e5b075dcb3 Charted wrecks: chart symbols, seabed obstacle, submarine hiding
- Wrecks and underwater rocks are drawn on every chart (native map view,
  OPZ basemap, web role map) as chart symbols with the depth of their top
  when zoomed in and a chart tooltip; they are published as public chart
  geography to Remote Crew.
- Wrecks now raise the seabed within half their length, like rocks, so
  they are obstacles for grounding, submarines and weapons.
- An evading submarine near the frigate may creep to a charted wreck
  within 8 NM and lie still on the bottom beside it (new WRACK state,
  silent, no current drift, derived from saved fields so save v12 is
  unchanged). A zero-Doppler echo in the same range cell and beam merges
  with the wreck echo: hidden from CW (750 m cell), separable with LFM
  (about 8 m).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 12:58:50 +02:00
db9979andClaude Opus 5.5 a3b72e9475 Weather & sonar analysis station; frame-rate option, elastic sonar audio, presentation
Weather & sonar analysis (key 0, uConsole full screen and every Remote
Crew station): own-ship atmosphere derived from the weather system
(barometer leading the sea with WMO tendency and storm warning, air
temperature with cold outbreaks, snow and icing, gusts, Beaufort, cloud
ceiling, twilight from sun elevation, moon phase), weather effects, and a
helicopter flight decision (CLEAR/LIMITED/NO-GO; gusts, ceiling and icing
now limit launch and dipping, light icing costs fuel). The ocean profile
(layer, sound-speed curve, SOFAR axis, rays and shadow zone) appears only
after a sonar bathythermograph measurement and is always that
measurement. Rain freshens a surface lens in the Mackenzie sound speed;
ray profiles and the BT continue to the seabed (to 1500 m) so a deep
sound channel can form. New common v2 block `weather_station`, browser
validator and dialog, protocol docs, manual EN/DE.

Also included from the parallel session: selectable 30/60 FPS frame-rate
preference with bounded catch-up of slow frames, elastic sonar audio
buffering (local mixer and AudioWorklet), and a German presentation of
the simulation under docs/presentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 09:24:14 +02:00
db9979andClaude Opus 5.5 5d74b5dc36 Fix Remote Crew web client after the physics merge; label radar rings
- The browser validator rejected the ELOKA intercept rows because the
  1.1.0 projection added signal_db, range_estimate_nm and scan_period_s;
  the whole picture froze ("Host sendet Daten, die dieser Browser nicht
  lesen kann"). validateV2State now accepts and type-checks them.
- admin.js called crypto.randomUUID directly, which does not exist on the
  plain-HTTP LAN host (non-secure context); it now falls back to a v4 UUID
  from getRandomValues like app.js.
- Radar range rings on the native OPZ picture and the web OPZ chart show
  their distances.

New regression tests run real bridge projections for all nine stations
through the extracted browser validator in headless Chromium, and the
request-ID generators with crypto.randomUUID removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:39:49 +02:00
db9979andClaude Opus 5.5 2f3b0f21b2 Phase 11: radar equation, antenna scan, ESM amplitude, HFDF, lookout
Radar: SNR ~ sigma/R^4 anchored so the nominal range is the Pd = 0.5 point
for a broadside target; Swerling-1 behind a 16-cell CA-CFAR; GIT-type sea
clutter (+3 dB per sea state, CNR ~ R^-3); two-way rain attenuation; aspect
as RCS. The antenna turns in simulation time (phase and pending sweep are
saved) and a contact gets one deterministic look only when the beam swept
it. Missile noise jammers are solved from their burn-through range (JNR ~
R^-2). The CIWS search/track radar holds missiles inside 3 NM. Hostile
platform radars use the same Pd = 0.5 range.

ESM: one-way level vs power class, main beam once per revolution and side
lobes at -25 dB, peak level, measured scan period (drives the LIVE window)
and a range estimate from the best candidate's power class (ELOKA page and
Remote Crew projection).

HFDF: boats pick OWF = 0.85 MUF for their shore path; ground-wave range
falls with frequency, sky wave beyond the skip distance with doubled
bearing error; frequency and mode are published on the observation.

Lookout: Koschmieder contrast, Blackwell threshold vs angular size, optical
horizon, whitecap clutter for sea-level targets and a moon-phase night.

Calibration gains an air-defence section (impact time, CIWS and chaff leak)
recorded on the 1.0.0 tree; all 77 metrics are within tolerance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 20:57:07 +02:00
db9979 3b3753cf4e Initial Release v1.0.0 2026-09-23 12:10:58 +02:00