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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Q-MCT v4.2 Algorithmic Benchmarks: QUAV Path Length, Mean-Field AOA & QRL Compression</title>
|
| 7 |
+
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
| 11 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 12 |
+
|
| 13 |
+
<style>
|
| 14 |
+
@font-face {
|
| 15 |
+
font-family: "Google Sans";
|
| 16 |
+
src: url("https://fonts.gstatic.com/s/googlesans/v58/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2vgCI.woff2") format("woff2");
|
| 17 |
+
font-weight: 400; font-style: normal; font-display: swap;
|
| 18 |
+
}
|
| 19 |
+
:root, html[data-theme="light"] {
|
| 20 |
+
--surface-color: #FFFFFF;
|
| 21 |
+
--surface-card: #F8FAFC;
|
| 22 |
+
--on-surface: #1B1C1D;
|
| 23 |
+
--on-surface-variant: #575B5F;
|
| 24 |
+
--outline-variant: #E2E8F0;
|
| 25 |
+
--google-blue: #1A73E8;
|
| 26 |
+
--cyan: #12B5CB;
|
| 27 |
+
--purple: #9334E6;
|
| 28 |
+
--tangerine: #FA903E;
|
| 29 |
+
--mint-green: #81C995;
|
| 30 |
+
}
|
| 31 |
+
html[data-theme="dark"] {
|
| 32 |
+
--surface-color: #141414;
|
| 33 |
+
--surface-card: #1E222B;
|
| 34 |
+
--on-surface: #FFFFFF;
|
| 35 |
+
--on-surface-variant: #A2A9B0;
|
| 36 |
+
--outline-variant: #333942;
|
| 37 |
+
--google-blue: #1A73E8;
|
| 38 |
+
--cyan: #12B5CB;
|
| 39 |
+
--purple: #A142F4;
|
| 40 |
+
--tangerine: #FA903E;
|
| 41 |
+
--mint-green: #81C995;
|
| 42 |
+
}
|
| 43 |
+
.tabular-nums {
|
| 44 |
+
font-variant-numeric: tabular-nums;
|
| 45 |
+
}
|
| 46 |
+
input[type=range] {
|
| 47 |
+
-webkit-appearance: none;
|
| 48 |
+
background: var(--outline-variant);
|
| 49 |
+
height: 4px;
|
| 50 |
+
border-radius: 2px;
|
| 51 |
+
}
|
| 52 |
+
input[type=range]::-webkit-slider-thumb {
|
| 53 |
+
-webkit-appearance: none;
|
| 54 |
+
height: 14px;
|
| 55 |
+
width: 14px;
|
| 56 |
+
border-radius: 50%;
|
| 57 |
+
background: var(--purple);
|
| 58 |
+
cursor: pointer;
|
| 59 |
+
}
|
| 60 |
+
</style>
|
| 61 |
+
<script>
|
| 62 |
+
tailwind.config = {
|
| 63 |
+
darkMode: ['class', '[data-theme="dark"]'],
|
| 64 |
+
theme: {
|
| 65 |
+
extend: {
|
| 66 |
+
fontFamily: {
|
| 67 |
+
sans: ['"Google Sans"', '"Open Sans"', 'sans-serif'],
|
| 68 |
+
mono: ['"JetBrains Mono"', 'monospace']
|
| 69 |
+
},
|
| 70 |
+
colors: {
|
| 71 |
+
surface: 'var(--surface-color)',
|
| 72 |
+
'surface-card': 'var(--surface-card)',
|
| 73 |
+
'on-surface': 'var(--on-surface)',
|
| 74 |
+
'on-surface-variant': 'var(--on-surface-variant)',
|
| 75 |
+
'outline-variant': 'var(--outline-variant)',
|
| 76 |
+
'g-blue': 'var(--google-blue)',
|
| 77 |
+
'g-cyan': 'var(--cyan)',
|
| 78 |
+
'g-purple': 'var(--purple)',
|
| 79 |
+
'g-tangerine': 'var(--tangerine)',
|
| 80 |
+
'g-mint': 'var(--mint-green)'
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
</script>
|
| 86 |
+
</head>
|
| 87 |
+
<body class="font-sans bg-surface text-on-surface m-0 p-3 sm:p-5 flex justify-center w-full min-h-screen">
|
| 88 |
+
<main class="w-full max-w-[860px] flex flex-col gap-4">
|
| 89 |
+
<!-- Header Banner -->
|
| 90 |
+
<header class="w-full bg-slate-900 text-white rounded-lg p-3.5 border border-slate-700 flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
| 91 |
+
<div>
|
| 92 |
+
<div class="flex items-center gap-2">
|
| 93 |
+
<span class="text-xs font-mono font-bold tracking-wider text-purple-300">Q-MCT v4.2 ANALYTICAL MODULE 02</span>
|
| 94 |
+
<span class="text-[10px] px-1.5 py-0.5 rounded bg-purple-950 text-purple-300 border border-purple-700 font-mono">LAYER 4 ALGORITHMS</span>
|
| 95 |
+
</div>
|
| 96 |
+
<h1 class="text-lg sm:text-xl font-semibold text-white mt-0.5">
|
| 97 |
+
Quantum Algorithmic Advantage: QUAV Path Planning, Mean-Field AOA & QRL Compression
|
| 98 |
+
</h1>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="flex items-center gap-2 font-mono text-[11px] shrink-0">
|
| 101 |
+
<a href="metrology_benchmarks.html" class="px-2.5 py-1.5 rounded bg-slate-800 hover:bg-slate-700 border border-slate-600 text-cyan-300 transition">
|
| 102 |
+
← Metrology Module
|
| 103 |
+
</a>
|
| 104 |
+
<a href="q_mct_flight_deck.html" class="px-2.5 py-1.5 rounded bg-blue-600 hover:bg-blue-500 text-white font-semibold transition">
|
| 105 |
+
Flight Deck →
|
| 106 |
+
</a>
|
| 107 |
+
</div>
|
| 108 |
+
</header>
|
| 109 |
+
|
| 110 |
+
<!-- Top Operational Efficiency KPI Strip -->
|
| 111 |
+
<section class="grid grid-cols-2 sm:grid-cols-4 gap-2.5 font-mono">
|
| 112 |
+
<div class="bg-surface-card border border-outline-variant rounded-lg p-2.5">
|
| 113 |
+
<div class="text-[10px] text-on-surface-variant">PQC-QRL vs DQN</div>
|
| 114 |
+
<div class="text-base font-bold text-emerald-500 mt-0.5">4.29× Fewer Params</div>
|
| 115 |
+
<div class="text-[10px] text-on-surface-variant">3.77× vs Actor-Critic</div>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="bg-surface-card border border-outline-variant rounded-lg p-2.5">
|
| 118 |
+
<div class="text-[10px] text-on-surface-variant">QUAV-QAOA vs RRT</div>
|
| 119 |
+
<div class="text-base font-bold text-purple-500 mt-0.5">-29.3% Path Length</div>
|
| 120 |
+
<div class="text-[10px] text-on-surface-variant">1104.11 m vs 1561.99 m</div>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="bg-surface-card border border-outline-variant rounded-lg p-2.5">
|
| 123 |
+
<div class="text-[10px] text-on-surface-variant">CubeSat QKD (100 MHz)</div>
|
| 124 |
+
<div class="text-base font-bold text-cyan-500 mt-0.5">1.99 Mbits / Pass</div>
|
| 125 |
+
<div class="text-[10px] text-on-surface-variant">2,010 s daily contact</div>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="bg-surface-card border border-outline-variant rounded-lg p-2.5">
|
| 128 |
+
<div class="text-[10px] text-on-surface-variant">DP Reactive Scheduler</div>
|
| 129 |
+
<div class="text-base font-bold text-g-blue mt-0.5">8,341 DTN Bundles</div>
|
| 130 |
+
<div class="text-[10px] text-on-surface-variant"><1 min runtime (55° FOR)</div>
|
| 131 |
+
</div>
|
| 132 |
+
</section>
|
| 133 |
+
|
| 134 |
+
<!-- Interactive Solver Controls -->
|
| 135 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3 grid grid-cols-1 md:grid-cols-2 gap-4 text-xs">
|
| 136 |
+
<div class="flex flex-col gap-1.5">
|
| 137 |
+
<div class="flex justify-between font-medium">
|
| 138 |
+
<span>Obstacle Polygon Safety Buffer (s_x, s_y):</span>
|
| 139 |
+
<span id="buffer-val" class="font-mono text-purple-600 dark:text-purple-400 font-bold tabular-nums">1.50×</span>
|
| 140 |
+
</div>
|
| 141 |
+
<input type="range" id="buffer-slider" min="1.0" max="2.5" step="0.05" value="1.5" class="w-full">
|
| 142 |
+
<div class="flex justify-between text-[10px] font-mono text-on-surface-variant">
|
| 143 |
+
<span>1.0× Nominal Hull</span>
|
| 144 |
+
<span>1.5× QUAV Standard</span>
|
| 145 |
+
<span>2.5× High-Hazard Margin</span>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<div class="flex flex-col gap-1.5">
|
| 150 |
+
<div class="flex justify-between font-medium">
|
| 151 |
+
<span>Mean-Field AOA Circuit Depth (p layers):</span>
|
| 152 |
+
<span id="depth-val" class="font-mono text-cyan-600 dark:text-cyan-400 font-bold tabular-nums">p = 400</span>
|
| 153 |
+
</div>
|
| 154 |
+
<input type="range" id="depth-slider" min="12" max="1000" step="12" value="400" class="w-full">
|
| 155 |
+
<div class="flex justify-between text-[10px] font-mono text-on-surface-variant">
|
| 156 |
+
<span>p=12 (NISQ QAOA)</span>
|
| 157 |
+
<span>p=400 (Mean-Field)</span>
|
| 158 |
+
<span>p=1000 (Parisi Asymptote)</span>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</section>
|
| 162 |
+
|
| 163 |
+
<!-- Two-Column Visualization Grid -->
|
| 164 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-3.5">
|
| 165 |
+
<!-- Chart A: QUAV Scenario 3 Trajectory Benchmark -->
|
| 166 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3.5 flex flex-col gap-2">
|
| 167 |
+
<div>
|
| 168 |
+
<h2 class="text-sm font-bold text-on-surface">1. Scenario 3 Obstacle-Avoidance Trajectory Length</h2>
|
| 169 |
+
<p class="text-[11px] text-on-surface-variant">
|
| 170 |
+
DARBO-optimized QUAV-QAOA (κ_s=4, β=0.2) vs. Rapidly-exploring Random Trees (RRT) & A* lattice search.
|
| 171 |
+
</p>
|
| 172 |
+
</div>
|
| 173 |
+
<div class="w-full h-[225px] bg-slate-950 rounded border border-slate-800 overflow-hidden">
|
| 174 |
+
<canvas id="quav-chart" class="w-full h-full block"></canvas>
|
| 175 |
+
</div>
|
| 176 |
+
<div class="flex justify-between font-mono text-[10px] text-on-surface-variant pt-1">
|
| 177 |
+
<span>A* Lattice: <strong class="text-emerald-500">380.00 m</strong></span>
|
| 178 |
+
<span>QUAV-QAOA: <strong id="quav-len-label" class="text-purple-400">1104.11 m</strong></span>
|
| 179 |
+
<span>RRT: <strong id="rrt-len-label" class="text-amber-500">1561.99 m</strong></span>
|
| 180 |
+
</div>
|
| 181 |
+
</section>
|
| 182 |
+
|
| 183 |
+
<!-- Chart B: Sherrington-Kirkpatrick Spin-Glass Scaling -->
|
| 184 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3.5 flex flex-col gap-2">
|
| 185 |
+
<div>
|
| 186 |
+
<h2 class="text-sm font-bold text-on-surface">2. SK Spin-Glass Ground-State Energy E*/N (10k Instances)</h2>
|
| 187 |
+
<p class="text-[11px] text-on-surface-variant">
|
| 188 |
+
Polynomial O(pN²) Mean-Field AOA (ω = 0.61) surpassing QAOA (p=12) & Zero-Temp Annealing toward Parisi bound.
|
| 189 |
+
</p>
|
| 190 |
+
</div>
|
| 191 |
+
<div class="w-full h-[225px] bg-slate-950 rounded border border-slate-800 overflow-hidden">
|
| 192 |
+
<canvas id="sk-chart" class="w-full h-full block"></canvas>
|
| 193 |
+
</div>
|
| 194 |
+
<div class="flex justify-between font-mono text-[10px] text-on-surface-variant pt-1">
|
| 195 |
+
<span>QAOA(12): <strong class="text-amber-500">-0.637</strong></span>
|
| 196 |
+
<span>MF-AOA: <strong id="mf-energy-label" class="text-cyan-400">-0.752</strong></span>
|
| 197 |
+
<span>Parisi ε_P: <strong class="text-emerald-400">-0.763</strong></span>
|
| 198 |
+
</div>
|
| 199 |
+
</section>
|
| 200 |
+
</div>
|
| 201 |
+
</main>
|
| 202 |
+
|
| 203 |
+
<script>
|
| 204 |
+
const state = {
|
| 205 |
+
bufferScale: 1.5,
|
| 206 |
+
pDepth: 400
|
| 207 |
+
};
|
| 208 |
+
|
| 209 |
+
function setupCanvas(canvas) {
|
| 210 |
+
const dpr = window.devicePixelRatio || 1;
|
| 211 |
+
const rect = canvas.parentElement.getBoundingClientRect();
|
| 212 |
+
canvas.width = rect.width * dpr;
|
| 213 |
+
canvas.height = rect.height * dpr;
|
| 214 |
+
const ctx = canvas.getContext('2d');
|
| 215 |
+
ctx.scale(dpr, dpr);
|
| 216 |
+
return { ctx, w: rect.width, h: rect.height };
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
function drawQUAVChart() {
|
| 220 |
+
const { ctx, w, h } = setupCanvas(document.getElementById('quav-chart'));
|
| 221 |
+
ctx.fillStyle = '#060A17';
|
| 222 |
+
ctx.fillRect(0, 0, w, h);
|
| 223 |
+
|
| 224 |
+
const padL = 52, padR = 16, padT = 18, padB = 30;
|
| 225 |
+
const plotW = w - padL - padR;
|
| 226 |
+
const plotH = h - padT - padB;
|
| 227 |
+
const maxLen = 2000;
|
| 228 |
+
|
| 229 |
+
ctx.strokeStyle = 'rgba(148, 163, 184, 0.16)';
|
| 230 |
+
ctx.font = '9px "JetBrains Mono"';
|
| 231 |
+
ctx.fillStyle = '#94A3B8';
|
| 232 |
+
|
| 233 |
+
[0, 500, 1000, 1500, 2000].forEach(val => {
|
| 234 |
+
const y = padT + ((maxLen - val) / maxLen) * plotH;
|
| 235 |
+
ctx.beginPath();
|
| 236 |
+
ctx.moveTo(padL, y);
|
| 237 |
+
ctx.lineTo(w - padR, y);
|
| 238 |
+
ctx.stroke();
|
| 239 |
+
ctx.fillText(`${val}m`, 10, y + 3);
|
| 240 |
+
});
|
| 241 |
+
|
| 242 |
+
const deltaBuf = state.bufferScale - 1.5;
|
| 243 |
+
const aStarLen = 380.00 + Math.max(0, deltaBuf * 45.0);
|
| 244 |
+
const quavLen = 1104.11 + deltaBuf * 115.0;
|
| 245 |
+
const rrtLen = 1561.99 + deltaBuf * 240.0;
|
| 246 |
+
|
| 247 |
+
document.getElementById('quav-len-label').textContent = `${quavLen.toFixed(2)} m`;
|
| 248 |
+
document.getElementById('rrt-len-label').textContent = `${rrtLen.toFixed(2)} m`;
|
| 249 |
+
|
| 250 |
+
const bars = [
|
| 251 |
+
{ label: 'A* Lattice', val: aStarLen, color: '#81C995', sub: 'Slow Grid' },
|
| 252 |
+
{ label: 'QUAV-QAOA', val: quavLen, color: '#A142F4', sub: 'Smooth / Fast' },
|
| 253 |
+
{ label: 'RRT Baseline', val: rrtLen, color: '#FA903E', sub: 'Jagged Path' }
|
| 254 |
+
];
|
| 255 |
+
|
| 256 |
+
const slot = plotW / bars.length;
|
| 257 |
+
bars.forEach((b, i) => {
|
| 258 |
+
const bx = padL + i * slot + slot * 0.2;
|
| 259 |
+
const bw = slot * 0.6;
|
| 260 |
+
const topY = padT + ((maxLen - b.val) / maxLen) * plotH;
|
| 261 |
+
const barH = (padT + plotH) - topY;
|
| 262 |
+
|
| 263 |
+
ctx.fillStyle = b.color;
|
| 264 |
+
ctx.fillRect(bx, topY, bw, barH);
|
| 265 |
+
|
| 266 |
+
ctx.fillStyle = '#FFFFFF';
|
| 267 |
+
ctx.font = 'bold 10px "JetBrains Mono"';
|
| 268 |
+
ctx.textAlign = 'center';
|
| 269 |
+
ctx.fillText(`${b.val.toFixed(1)}m`, bx + bw / 2, topY - 6);
|
| 270 |
+
ctx.fillStyle = '#CBD5E1';
|
| 271 |
+
ctx.font = '9px "JetBrains Mono"';
|
| 272 |
+
ctx.fillText(b.label, bx + bw / 2, h - 10);
|
| 273 |
+
});
|
| 274 |
+
ctx.textAlign = 'left';
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
function evalMFEnergy(p) {
|
| 278 |
+
// Asymptotic scaling E*/N = -0.763 + C * p^(-0.61)
|
| 279 |
+
const val = -0.763 + 0.56 * Math.pow(p, -0.61);
|
| 280 |
+
return Math.max(-0.762, Math.min(-0.62, val));
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
function drawSKChart() {
|
| 284 |
+
const { ctx, w, h } = setupCanvas(document.getElementById('sk-chart'));
|
| 285 |
+
ctx.fillStyle = '#060A17';
|
| 286 |
+
ctx.fillRect(0, 0, w, h);
|
| 287 |
+
|
| 288 |
+
const padL = 52, padR = 16, padT = 18, padB = 30;
|
| 289 |
+
const plotW = w - padL - padR;
|
| 290 |
+
const plotH = h - padT - padB;
|
| 291 |
+
const minE = -0.78, maxE = -0.60;
|
| 292 |
+
|
| 293 |
+
ctx.strokeStyle = 'rgba(148, 163, 184, 0.16)';
|
| 294 |
+
ctx.font = '9px "JetBrains Mono"';
|
| 295 |
+
ctx.fillStyle = '#94A3B8';
|
| 296 |
+
|
| 297 |
+
[-0.60, -0.65, -0.70, -0.75].forEach(eVal => {
|
| 298 |
+
const y = padT + ((maxE - eVal) / (maxE - minE)) * plotH;
|
| 299 |
+
ctx.beginPath();
|
| 300 |
+
ctx.moveTo(padL, y);
|
| 301 |
+
ctx.lineTo(w - padR, y);
|
| 302 |
+
ctx.stroke();
|
| 303 |
+
ctx.fillText(eVal.toFixed(2), 10, y + 3);
|
| 304 |
+
});
|
| 305 |
+
|
| 306 |
+
// Reference Horizontal Lines: QAOA (p=12) = -0.637, Zero-T Annealing = -0.710, Parisi Bound = -0.763
|
| 307 |
+
const refs = [
|
| 308 |
+
{ val: -0.637, color: '#FA903E', label: 'QAOA p=12 (-0.637)' },
|
| 309 |
+
{ val: -0.710, color: '#94A3B8', label: 'Zero-T Anneal (-0.710)' },
|
| 310 |
+
{ val: -0.763, color: '#81C995', label: 'Parisi Bound ε_P (-0.763)' }
|
| 311 |
+
];
|
| 312 |
+
|
| 313 |
+
refs.forEach(r => {
|
| 314 |
+
const y = padT + ((maxE - r.val) / (maxE - minE)) * plotH;
|
| 315 |
+
ctx.save();
|
| 316 |
+
ctx.strokeStyle = r.color;
|
| 317 |
+
ctx.setLineDash([4, 4]);
|
| 318 |
+
ctx.beginPath();
|
| 319 |
+
ctx.moveTo(padL, y);
|
| 320 |
+
ctx.lineTo(w - padR, y);
|
| 321 |
+
ctx.stroke();
|
| 322 |
+
ctx.fillStyle = r.color;
|
| 323 |
+
ctx.fillText(r.label, padL + 6, y - 4);
|
| 324 |
+
ctx.restore();
|
| 325 |
+
});
|
| 326 |
+
|
| 327 |
+
// Mean-Field AOA Convergence Curve across p in [12, 1000]
|
| 328 |
+
ctx.strokeStyle = '#12B5CB';
|
| 329 |
+
ctx.lineWidth = 2.4;
|
| 330 |
+
ctx.beginPath();
|
| 331 |
+
for (let step = 0; step <= 100; step++) {
|
| 332 |
+
const p = 12 + (step / 100) * (1000 - 12);
|
| 333 |
+
const eVal = evalMFEnergy(p);
|
| 334 |
+
const px = padL + (step / 100) * plotW;
|
| 335 |
+
const py = padT + ((maxE - eVal) / (maxE - minE)) * plotH;
|
| 336 |
+
if (step === 0) ctx.moveTo(px, py);
|
| 337 |
+
else ctx.lineTo(px, py);
|
| 338 |
+
}
|
| 339 |
+
ctx.stroke();
|
| 340 |
+
|
| 341 |
+
// Active Depth Marker
|
| 342 |
+
const frac = (state.pDepth - 12) / (1000 - 12);
|
| 343 |
+
const curX = padL + frac * plotW;
|
| 344 |
+
const curE = evalMFEnergy(state.pDepth);
|
| 345 |
+
const curY = padT + ((maxE - curE) / (maxE - minE)) * plotH;
|
| 346 |
+
|
| 347 |
+
ctx.fillStyle = '#FFFFFF';
|
| 348 |
+
ctx.beginPath();
|
| 349 |
+
ctx.arc(curX, curY, 4.5, 0, Math.PI * 2);
|
| 350 |
+
ctx.fill();
|
| 351 |
+
|
| 352 |
+
document.getElementById('mf-energy-label').textContent = curE.toFixed(3);
|
| 353 |
+
[12, 250, 500, 750, 1000].forEach(pTick => {
|
| 354 |
+
const x = padL + ((pTick - 12) / (1000 - 12)) * plotW;
|
| 355 |
+
ctx.fillStyle = '#94A3B8';
|
| 356 |
+
ctx.fillText(`p=${pTick}`, x - 14, h - 10);
|
| 357 |
+
});
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
document.getElementById('buffer-slider').addEventListener('input', (e) => {
|
| 361 |
+
state.bufferScale = parseFloat(e.target.value);
|
| 362 |
+
document.getElementById('buffer-val').textContent = `${state.bufferScale.toFixed(2)}×`;
|
| 363 |
+
drawQUAVChart();
|
| 364 |
+
});
|
| 365 |
+
|
| 366 |
+
document.getElementById('depth-slider').addEventListener('input', (e) => {
|
| 367 |
+
state.pDepth = parseInt(e.target.value);
|
| 368 |
+
document.getElementById('depth-val').textContent = `p = ${state.pDepth}`;
|
| 369 |
+
drawSKChart();
|
| 370 |
+
});
|
| 371 |
+
|
| 372 |
+
function renderAll() {
|
| 373 |
+
drawQUAVChart();
|
| 374 |
+
drawSKChart();
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
window.addEventListener('resize', renderAll);
|
| 378 |
+
document.fonts.ready.then(renderAll);
|
| 379 |
+
</script>
|
| 380 |
+
</body>
|
| 381 |
+
</html>
|
ui/metrology_benchmarks.html
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Q-MCT v4.2 Metrology Benchmarks: CAI Noise Floor, DSAC Allan Deviation & GGT Orbit Precision</title>
|
| 7 |
+
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
| 11 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 12 |
+
|
| 13 |
+
<style>
|
| 14 |
+
@font-face {
|
| 15 |
+
font-family: "Google Sans";
|
| 16 |
+
src: url("https://fonts.gstatic.com/s/googlesans/v58/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2vgCI.woff2") format("woff2");
|
| 17 |
+
font-weight: 400; font-style: normal; font-display: swap;
|
| 18 |
+
}
|
| 19 |
+
:root, html[data-theme="light"] {
|
| 20 |
+
--surface-color: #FFFFFF;
|
| 21 |
+
--surface-card: #F8FAFC;
|
| 22 |
+
--on-surface: #1B1C1D;
|
| 23 |
+
--on-surface-variant: #575B5F;
|
| 24 |
+
--outline-variant: #E2E8F0;
|
| 25 |
+
--google-blue: #1A73E8;
|
| 26 |
+
--cyan: #12B5CB;
|
| 27 |
+
--magenta: #F538A0;
|
| 28 |
+
--tangerine: #FA903E;
|
| 29 |
+
--mint-green: #81C995;
|
| 30 |
+
--red: #D93025;
|
| 31 |
+
}
|
| 32 |
+
html[data-theme="dark"] {
|
| 33 |
+
--surface-color: #141414;
|
| 34 |
+
--surface-card: #1E222B;
|
| 35 |
+
--on-surface: #FFFFFF;
|
| 36 |
+
--on-surface-variant: #A2A9B0;
|
| 37 |
+
--outline-variant: #333942;
|
| 38 |
+
--google-blue: #1A73E8;
|
| 39 |
+
--cyan: #12B5CB;
|
| 40 |
+
--magenta: #F538A0;
|
| 41 |
+
--tangerine: #FA903E;
|
| 42 |
+
--mint-green: #81C995;
|
| 43 |
+
--red: #D93025;
|
| 44 |
+
}
|
| 45 |
+
.tabular-nums {
|
| 46 |
+
font-variant-numeric: tabular-nums;
|
| 47 |
+
}
|
| 48 |
+
input[type=range] {
|
| 49 |
+
-webkit-appearance: none;
|
| 50 |
+
background: var(--outline-variant);
|
| 51 |
+
height: 4px;
|
| 52 |
+
border-radius: 2px;
|
| 53 |
+
}
|
| 54 |
+
input[type=range]::-webkit-slider-thumb {
|
| 55 |
+
-webkit-appearance: none;
|
| 56 |
+
height: 14px;
|
| 57 |
+
width: 14px;
|
| 58 |
+
border-radius: 50%;
|
| 59 |
+
background: var(--google-blue);
|
| 60 |
+
cursor: pointer;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
<script>
|
| 64 |
+
tailwind.config = {
|
| 65 |
+
darkMode: ['class', '[data-theme="dark"]'],
|
| 66 |
+
theme: {
|
| 67 |
+
extend: {
|
| 68 |
+
fontFamily: {
|
| 69 |
+
sans: ['"Google Sans"', '"Open Sans"', 'sans-serif'],
|
| 70 |
+
mono: ['"JetBrains Mono"', 'monospace']
|
| 71 |
+
},
|
| 72 |
+
colors: {
|
| 73 |
+
surface: 'var(--surface-color)',
|
| 74 |
+
'surface-card': 'var(--surface-card)',
|
| 75 |
+
'on-surface': 'var(--on-surface)',
|
| 76 |
+
'on-surface-variant': 'var(--on-surface-variant)',
|
| 77 |
+
'outline-variant': 'var(--outline-variant)',
|
| 78 |
+
'g-blue': 'var(--google-blue)',
|
| 79 |
+
'g-cyan': 'var(--cyan)',
|
| 80 |
+
'g-magenta': 'var(--magenta)',
|
| 81 |
+
'g-tangerine': 'var(--tangerine)',
|
| 82 |
+
'g-mint': 'var(--mint-green)',
|
| 83 |
+
'g-red': 'var(--red)'
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
</script>
|
| 89 |
+
</head>
|
| 90 |
+
<body class="font-sans bg-surface text-on-surface m-0 p-3 sm:p-5 flex justify-center w-full min-h-screen">
|
| 91 |
+
<main class="w-full max-w-[860px] flex flex-col gap-4">
|
| 92 |
+
<!-- Header Banner -->
|
| 93 |
+
<header class="w-full bg-slate-900 text-white rounded-lg p-3.5 border border-slate-700 flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
| 94 |
+
<div>
|
| 95 |
+
<div class="flex items-center gap-2">
|
| 96 |
+
<span class="text-xs font-mono font-bold tracking-wider text-cyan-300">Q-MCT v4.2 ANALYTICAL MODULE 01</span>
|
| 97 |
+
<span class="text-[10px] px-1.5 py-0.5 rounded bg-blue-950 text-blue-300 border border-blue-700 font-mono">LAYER 4 METROLOGY</span>
|
| 98 |
+
</div>
|
| 99 |
+
<h1 class="text-lg sm:text-xl font-semibold text-white mt-0.5">
|
| 100 |
+
Quantum Metrology Benchmarks: CAI Noise Floor, DSAC Stability & GGT Orbit Precision
|
| 101 |
+
</h1>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="flex items-center gap-2 font-mono text-[11px] shrink-0">
|
| 104 |
+
<a href="q_mct_flight_deck.html" class="px-2.5 py-1.5 rounded bg-slate-800 hover:bg-slate-700 border border-slate-600 text-cyan-300 transition">
|
| 105 |
+
← Flight Deck
|
| 106 |
+
</a>
|
| 107 |
+
<a href="algorithmic_benchmarks.html" class="px-2.5 py-1.5 rounded bg-blue-600 hover:bg-blue-500 text-white font-semibold transition">
|
| 108 |
+
Algorithmic Module →
|
| 109 |
+
</a>
|
| 110 |
+
</div>
|
| 111 |
+
</header>
|
| 112 |
+
|
| 113 |
+
<!-- Interactive Parameter Bar -->
|
| 114 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3 grid grid-cols-1 md:grid-cols-3 gap-3 text-xs">
|
| 115 |
+
<div class="flex flex-col gap-1.5">
|
| 116 |
+
<div class="flex justify-between font-medium">
|
| 117 |
+
<span>CAI Interrogation Regime:</span>
|
| 118 |
+
<span id="regime-badge" class="font-mono text-g-blue font-bold">SOTA (2T = 5s)</span>
|
| 119 |
+
</div>
|
| 120 |
+
<div class="grid grid-cols-4 gap-1 font-mono text-[10px]">
|
| 121 |
+
<button data-regime="0" class="regime-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">No Mir</button>
|
| 122 |
+
<button data-regime="1" class="regime-btn py-1 rounded border bg-blue-600 text-white border-blue-600 font-bold">2T=5s</button>
|
| 123 |
+
<button data-regime="2" class="regime-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">2T=10s</button>
|
| 124 |
+
<button data-regime="3" class="regime-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">2T=20s</button>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<div class="flex flex-col gap-1.5">
|
| 129 |
+
<div class="flex justify-between font-medium">
|
| 130 |
+
<span>DSAC Averaging Time (τ):</span>
|
| 131 |
+
<span id="tau-readout" class="font-mono text-cyan-600 dark:text-cyan-400 font-bold tabular-nums">100 s</span>
|
| 132 |
+
</div>
|
| 133 |
+
<input type="range" id="tau-slider" min="0" max="5" step="0.05" value="2" class="w-full mt-1">
|
| 134 |
+
<div class="flex justify-between text-[10px] font-mono text-on-surface-variant">
|
| 135 |
+
<span>1 s</span>
|
| 136 |
+
<span>100 s</span>
|
| 137 |
+
<span>10,000 s</span>
|
| 138 |
+
<span>100,000 s</span>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div class="flex flex-col gap-1.5">
|
| 143 |
+
<div class="flex justify-between font-medium">
|
| 144 |
+
<span>EGM2008 Harmonic Degree (N_max):</span>
|
| 145 |
+
<span id="degree-readout" class="font-mono text-emerald-600 dark:text-emerald-400 font-bold tabular-nums">N = 300</span>
|
| 146 |
+
</div>
|
| 147 |
+
<div class="grid grid-cols-4 gap-1 font-mono text-[10px]">
|
| 148 |
+
<button data-deg="80" class="deg-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">N=80</button>
|
| 149 |
+
<button data-deg="150" class="deg-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">N=150</button>
|
| 150 |
+
<button data-deg="250" class="deg-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant">N=250</button>
|
| 151 |
+
<button data-deg="300" class="deg-btn py-1 rounded border bg-emerald-600 text-white border-emerald-600 font-bold">N=300</button>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
</section>
|
| 155 |
+
|
| 156 |
+
<!-- Panel 1: CAI Sensitivity Noise Floor -->
|
| 157 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3.5 flex flex-col gap-2">
|
| 158 |
+
<div class="flex flex-wrap items-center justify-between gap-2">
|
| 159 |
+
<div>
|
| 160 |
+
<h2 class="text-sm font-bold text-on-surface">1. Cold-Atom Interferometer (CAI) Acceleration Noise Floor (Log Scale)</h2>
|
| 161 |
+
<p class="text-[11px] text-on-surface-variant">
|
| 162 |
+
Suppression of Coriolis and wavefront aberration noise from uncompensated baseline (10⁻⁸) to far-future BEC matter-wave regimes (10⁻¹² m/s²/√Hz).
|
| 163 |
+
</p>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="font-mono text-xs px-2.5 py-1 rounded bg-surface border border-outline-variant tabular-nums">
|
| 166 |
+
Active Floor: <span id="active-cai-floor" class="font-bold text-g-blue">5.00e-10 m/s²/√Hz</span>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="w-full h-[185px] bg-slate-950 rounded border border-slate-800 overflow-hidden">
|
| 170 |
+
<canvas id="cai-chart" class="w-full h-full block"></canvas>
|
| 171 |
+
</div>
|
| 172 |
+
</section>
|
| 173 |
+
|
| 174 |
+
<!-- Panel 2 & Panel 3 Side-by-Side Grid -->
|
| 175 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-3.5">
|
| 176 |
+
<!-- Panel 2: DSAC Allan Deviation -->
|
| 177 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3.5 flex flex-col gap-2">
|
| 178 |
+
<div class="flex items-start justify-between gap-2">
|
| 179 |
+
<div>
|
| 180 |
+
<h2 class="text-sm font-bold text-on-surface">2. DSAC 40.5 GHz Allan Deviation σ_y(τ)</h2>
|
| 181 |
+
<p class="text-[11px] text-on-surface-variant">
|
| 182 |
+
¹⁹⁹Hg⁺ trapped-ion clock (1.5×10⁻¹³ @ 1s, 3×10⁻¹⁵ drift) vs. legacy space clocks & optical lattice.
|
| 183 |
+
</p>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
<div class="w-full h-[215px] bg-slate-950 rounded border border-slate-800 overflow-hidden">
|
| 187 |
+
<canvas id="allan-chart" class="w-full h-full block"></canvas>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="grid grid-cols-3 gap-1.5 font-mono text-[10px] tabular-nums">
|
| 190 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 191 |
+
<div class="text-on-surface-variant">Legacy Rb/Cs</div>
|
| 192 |
+
<div id="allan-legacy-val" class="font-bold text-amber-500">1.50e-13</div>
|
| 193 |
+
</div>
|
| 194 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 195 |
+
<div class="text-on-surface-variant">DSAC (Hg⁺)</div>
|
| 196 |
+
<div id="allan-dsac-val" class="font-bold text-cyan-400">1.50e-14</div>
|
| 197 |
+
</div>
|
| 198 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 199 |
+
<div class="text-on-surface-variant">Optical Lattice</div>
|
| 200 |
+
<div id="allan-opt-val" class="font-bold text-emerald-400">1.00e-16</div>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</section>
|
| 204 |
+
|
| 205 |
+
<!-- Panel 3: GGT Autonomous Orbit Determination -->
|
| 206 |
+
<section class="bg-surface-card border border-outline-variant rounded-lg p-3.5 flex flex-col gap-2">
|
| 207 |
+
<div>
|
| 208 |
+
<h2 class="text-sm font-bold text-on-surface">3. GGT EKF Autonomous Orbit Error (24 hr)</h2>
|
| 209 |
+
<p class="text-[11px] text-on-surface-variant">
|
| 210 |
+
Radial & cross-track error bounded <100 m via 4.7 mE/√Hz Chu-Bordé gradiometry vs. unbounded IMU drift.
|
| 211 |
+
</p>
|
| 212 |
+
</div>
|
| 213 |
+
<div class="w-full h-[215px] bg-slate-950 rounded border border-slate-800 overflow-hidden">
|
| 214 |
+
<canvas id="ggt-chart" class="w-full h-full block"></canvas>
|
| 215 |
+
</div>
|
| 216 |
+
<div class="grid grid-cols-3 gap-1.5 font-mono text-[10px] tabular-nums">
|
| 217 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 218 |
+
<div class="text-on-surface-variant">Classical IMU</div>
|
| 219 |
+
<div class="font-bold text-rose-500">>14.2 km (Drift)</div>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 222 |
+
<div class="text-on-surface-variant">GGT EKF Steady</div>
|
| 223 |
+
<div id="ggt-steady-val" class="font-bold text-emerald-400">42.1 m (<100m)</div>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="bg-surface p-1.5 rounded border border-outline-variant">
|
| 226 |
+
<div class="text-on-surface-variant">Laplace BIST</div>
|
| 227 |
+
<div class="font-bold text-cyan-400">Tr(V) = 0.00 E</div>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</section>
|
| 231 |
+
</div>
|
| 232 |
+
</main>
|
| 233 |
+
|
| 234 |
+
<script>
|
| 235 |
+
const state = {
|
| 236 |
+
regimeIdx: 1,
|
| 237 |
+
tauLog: 2.0,
|
| 238 |
+
harmonicDegree: 300
|
| 239 |
+
};
|
| 240 |
+
|
| 241 |
+
const regimes = [
|
| 242 |
+
{ name: 'Uncompensated Mirror', short: 'No Mirror', val: 1.0e-8, logVal: -8.0, color: '#FA903E', desc: 'Coriolis limit (1e-8)' },
|
| 243 |
+
{ name: 'SOTA (2T = 5s)', short: 'SOTA 2T=5s', val: 5.0e-10, logVal: -9.301, color: '#1A73E8', desc: 'Wavefront limited (5e-10)' },
|
| 244 |
+
{ name: 'Near-Future QPN (2T = 10s)', short: 'QPN 2T=10s', val: 1.0e-11, logVal: -11.0, color: '#12B5CB', desc: 'QPN-limited (1e-11)' },
|
| 245 |
+
{ name: 'Far-Future BEC (2T = 20s)', short: 'BEC 2T=20s', val: 1.0e-12, logVal: -12.0, color: '#81C995', desc: 'BEC limit (1e-12)' }
|
| 246 |
+
];
|
| 247 |
+
|
| 248 |
+
function setupCanvas(canvas) {
|
| 249 |
+
const dpr = window.devicePixelRatio || 1;
|
| 250 |
+
const rect = canvas.parentElement.getBoundingClientRect();
|
| 251 |
+
canvas.width = rect.width * dpr;
|
| 252 |
+
canvas.height = rect.height * dpr;
|
| 253 |
+
const ctx = canvas.getContext('2d');
|
| 254 |
+
ctx.scale(dpr, dpr);
|
| 255 |
+
return { ctx, w: rect.width, h: rect.height };
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
function drawCAIChart() {
|
| 259 |
+
const { ctx, w, h } = setupCanvas(document.getElementById('cai-chart'));
|
| 260 |
+
ctx.fillStyle = '#060A17';
|
| 261 |
+
ctx.fillRect(0, 0, w, h);
|
| 262 |
+
|
| 263 |
+
const padL = 72, padR = 24, padT = 20, padB = 30;
|
| 264 |
+
const plotW = w - padL - padR;
|
| 265 |
+
const plotH = h - padT - padB;
|
| 266 |
+
|
| 267 |
+
// Log Y axis from -7 to -13
|
| 268 |
+
const minLog = -13, maxLog = -7;
|
| 269 |
+
ctx.strokeStyle = 'rgba(148, 163, 184, 0.16)';
|
| 270 |
+
ctx.font = '10px "JetBrains Mono"';
|
| 271 |
+
ctx.fillStyle = '#94A3B8';
|
| 272 |
+
|
| 273 |
+
for (let lg = maxLog; lg >= minLog; lg--) {
|
| 274 |
+
const y = padT + ((maxLog - lg) / (maxLog - minLog)) * plotH;
|
| 275 |
+
ctx.beginPath();
|
| 276 |
+
ctx.moveTo(padL, y);
|
| 277 |
+
ctx.lineTo(w - padR, y);
|
| 278 |
+
ctx.stroke();
|
| 279 |
+
ctx.fillText(`10^${lg}`, 14, y + 3);
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
const barSlot = plotW / regimes.length;
|
| 283 |
+
regimes.forEach((r, idx) => {
|
| 284 |
+
const isSelected = idx === state.regimeIdx;
|
| 285 |
+
const bx = padL + idx * barSlot + barSlot * 0.22;
|
| 286 |
+
const bw = barSlot * 0.56;
|
| 287 |
+
const topY = padT + ((maxLog - r.logVal) / (maxLog - minLog)) * plotH;
|
| 288 |
+
const barH = (padT + plotH) - topY;
|
| 289 |
+
|
| 290 |
+
ctx.fillStyle = isSelected ? r.color : 'rgba(100, 116, 139, 0.45)';
|
| 291 |
+
ctx.fillRect(bx, topY, bw, barH);
|
| 292 |
+
|
| 293 |
+
if (isSelected) {
|
| 294 |
+
ctx.strokeStyle = '#FFFFFF';
|
| 295 |
+
ctx.lineWidth = 1.5;
|
| 296 |
+
ctx.strokeRect(bx, topY, bw, barH);
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
ctx.fillStyle = isSelected ? '#FFFFFF' : '#CBD5E1';
|
| 300 |
+
ctx.font = isSelected ? 'bold 10px "JetBrains Mono"' : '10px "JetBrains Mono"';
|
| 301 |
+
ctx.textAlign = 'center';
|
| 302 |
+
ctx.fillText(r.val.toExponential(1), bx + bw / 2, topY - 6);
|
| 303 |
+
ctx.fillText(r.short, bx + bw / 2, h - 10);
|
| 304 |
+
});
|
| 305 |
+
ctx.textAlign = 'left';
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
function evalLegacy(tau) {
|
| 309 |
+
return 1.5e-12 / Math.sqrt(tau) + 2.5e-14;
|
| 310 |
+
}
|
| 311 |
+
function evalDSAC(tau) {
|
| 312 |
+
return 1.5e-13 / Math.sqrt(tau) + (3.0e-15 / 86400) * tau;
|
| 313 |
+
}
|
| 314 |
+
function evalOptical(tau) {
|
| 315 |
+
return 1.0e-15 / Math.sqrt(tau) + 5.0e-18;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
function drawAllanChart() {
|
| 319 |
+
const { ctx, w, h } = setupCanvas(document.getElementById('allan-chart'));
|
| 320 |
+
ctx.fillStyle = '#060A17';
|
| 321 |
+
ctx.fillRect(0, 0, w, h);
|
| 322 |
+
|
| 323 |
+
const padL = 56, padR = 16, padT = 16, padB = 26;
|
| 324 |
+
const plotW = w - padL - padR;
|
| 325 |
+
const plotH = h - padT - padB;
|
| 326 |
+
const minLogY = -17, maxLogY = -11;
|
| 327 |
+
const maxLogX = 5; // 10^0 to 10^5
|
| 328 |
+
|
| 329 |
+
ctx.strokeStyle = 'rgba(148, 163, 184, 0.16)';
|
| 330 |
+
ctx.font = '9px "JetBrains Mono"';
|
| 331 |
+
ctx.fillStyle = '#94A3B8';
|
| 332 |
+
|
| 333 |
+
for (let ly = maxLogY; ly >= minLogY; ly--) {
|
| 334 |
+
const y = padT + ((maxLogY - ly) / (maxLogY - minLogY)) * plotH;
|
| 335 |
+
ctx.beginPath();
|
| 336 |
+
ctx.moveTo(padL, y);
|
| 337 |
+
ctx.lineTo(w - padR, y);
|
| 338 |
+
ctx.stroke();
|
| 339 |
+
ctx.fillText(`1e${ly}`, 8, y + 3);
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
for (let lx = 0; lx <= maxLogX; lx++) {
|
| 343 |
+
const x = padL + (lx / maxLogX) * plotW;
|
| 344 |
+
ctx.beginPath();
|
| 345 |
+
ctx.moveTo(x, padT);
|
| 346 |
+
ctx.lineTo(x, padT + plotH);
|
| 347 |
+
ctx.stroke();
|
| 348 |
+
ctx.fillText(`10^${lx}s`, x - 10, h - 8);
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
const curves = [
|
| 352 |
+
{ fn: evalLegacy, color: '#FA903E' },
|
| 353 |
+
{ fn: evalDSAC, color: '#12B5CB' },
|
| 354 |
+
{ fn: evalOptical, color: '#81C995' }
|
| 355 |
+
];
|
| 356 |
+
|
| 357 |
+
curves.forEach(c => {
|
| 358 |
+
ctx.strokeStyle = c.color;
|
| 359 |
+
ctx.lineWidth = 2;
|
| 360 |
+
ctx.beginPath();
|
| 361 |
+
for (let step = 0; step <= 100; step++) {
|
| 362 |
+
const lx = (step / 100) * maxLogX;
|
| 363 |
+
const tau = Math.pow(10, lx);
|
| 364 |
+
const ly = Math.log10(c.fn(tau));
|
| 365 |
+
const px = padL + (lx / maxLogX) * plotW;
|
| 366 |
+
const py = padT + ((maxLogY - ly) / (maxLogY - minLogY)) * plotH;
|
| 367 |
+
if (step === 0) ctx.moveTo(px, py);
|
| 368 |
+
else ctx.lineTo(px, py);
|
| 369 |
+
}
|
| 370 |
+
ctx.stroke();
|
| 371 |
+
});
|
| 372 |
+
|
| 373 |
+
// Interactive Tau Vertical Cursor
|
| 374 |
+
const curX = padL + (state.tauLog / maxLogX) * plotW;
|
| 375 |
+
ctx.save();
|
| 376 |
+
ctx.strokeStyle = 'rgba(255, 255, 255, 0.65)';
|
| 377 |
+
ctx.setLineDash([3, 3]);
|
| 378 |
+
ctx.beginPath();
|
| 379 |
+
ctx.moveTo(curX, padT);
|
| 380 |
+
ctx.lineTo(curX, padT + plotH);
|
| 381 |
+
ctx.stroke();
|
| 382 |
+
ctx.restore();
|
| 383 |
+
|
| 384 |
+
const tauVal = Math.pow(10, state.tauLog);
|
| 385 |
+
document.getElementById('tau-readout').textContent = `${tauVal >= 100 ? Math.round(tauVal) : tauVal.toFixed(1)} s`;
|
| 386 |
+
document.getElementById('allan-legacy-val').textContent = evalLegacy(tauVal).toExponential(2);
|
| 387 |
+
document.getElementById('allan-dsac-val').textContent = evalDSAC(tauVal).toExponential(2);
|
| 388 |
+
document.getElementById('allan-opt-val').textContent = evalOptical(tauVal).toExponential(2);
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
function drawGGTChart() {
|
| 392 |
+
const { ctx, w, h } = setupCanvas(document.getElementById('ggt-chart'));
|
| 393 |
+
ctx.fillStyle = '#060A17';
|
| 394 |
+
ctx.fillRect(0, 0, w, h);
|
| 395 |
+
|
| 396 |
+
const padL = 48, padR = 16, padT = 16, padB = 26;
|
| 397 |
+
const plotW = w - padL - padR;
|
| 398 |
+
const plotH = h - padT - padB;
|
| 399 |
+
const maxErr = 180; // meters
|
| 400 |
+
|
| 401 |
+
ctx.strokeStyle = 'rgba(148, 163, 184, 0.16)';
|
| 402 |
+
ctx.font = '9px "JetBrains Mono"';
|
| 403 |
+
ctx.fillStyle = '#94A3B8';
|
| 404 |
+
|
| 405 |
+
[0, 50, 100, 150].forEach(val => {
|
| 406 |
+
const y = padT + ((maxErr - val) / maxErr) * plotH;
|
| 407 |
+
ctx.beginPath();
|
| 408 |
+
ctx.moveTo(padL, y);
|
| 409 |
+
ctx.lineTo(w - padR, y);
|
| 410 |
+
ctx.stroke();
|
| 411 |
+
ctx.fillText(`${val}m`, 10, y + 3);
|
| 412 |
+
});
|
| 413 |
+
|
| 414 |
+
// 100m Requirement Threshold Line
|
| 415 |
+
const reqY = padT + ((maxErr - 100) / maxErr) * plotH;
|
| 416 |
+
ctx.save();
|
| 417 |
+
ctx.strokeStyle = '#F538A0';
|
| 418 |
+
ctx.setLineDash([4, 4]);
|
| 419 |
+
ctx.beginPath();
|
| 420 |
+
ctx.moveTo(padL, reqY);
|
| 421 |
+
ctx.lineTo(w - padR, reqY);
|
| 422 |
+
ctx.stroke();
|
| 423 |
+
ctx.fillStyle = '#F538A0';
|
| 424 |
+
ctx.fillText('100m MAX BOUND', padL + 8, reqY - 5);
|
| 425 |
+
ctx.restore();
|
| 426 |
+
|
| 427 |
+
// Classical IMU Divergence Curve
|
| 428 |
+
ctx.strokeStyle = '#D93025';
|
| 429 |
+
ctx.lineWidth = 2;
|
| 430 |
+
ctx.beginPath();
|
| 431 |
+
for (let t = 0; t <= 24; t += 0.5) {
|
| 432 |
+
const err = 15 + 3.2 * t * t;
|
| 433 |
+
const px = padL + (t / 24) * plotW;
|
| 434 |
+
const py = Math.max(padT, padT + ((maxErr - err) / maxErr) * plotH);
|
| 435 |
+
if (t === 0) ctx.moveTo(px, py);
|
| 436 |
+
else ctx.lineTo(px, py);
|
| 437 |
+
}
|
| 438 |
+
ctx.stroke();
|
| 439 |
+
|
| 440 |
+
// GGT EKF Bounded Convergence Curve
|
| 441 |
+
const degreeFactor = 300 / state.harmonicDegree;
|
| 442 |
+
const steadyErr = 42.1 * Math.pow(degreeFactor, 0.65);
|
| 443 |
+
ctx.strokeStyle = '#81C995';
|
| 444 |
+
ctx.lineWidth = 2.2;
|
| 445 |
+
ctx.beginPath();
|
| 446 |
+
for (let t = 0; t <= 24; t += 0.25) {
|
| 447 |
+
const err = steadyErr + (115 - steadyErr) * Math.exp(-t / 2.8) + Math.sin(t * 2.1) * 3.5;
|
| 448 |
+
const px = padL + (t / 24) * plotW;
|
| 449 |
+
const py = padT + ((maxErr - err) / maxErr) * plotH;
|
| 450 |
+
if (t === 0) ctx.moveTo(px, py);
|
| 451 |
+
else ctx.lineTo(px, py);
|
| 452 |
+
}
|
| 453 |
+
ctx.stroke();
|
| 454 |
+
|
| 455 |
+
document.getElementById('ggt-steady-val').textContent = `${steadyErr.toFixed(1)} m (<100m)`;
|
| 456 |
+
[0, 6, 12, 18, 24].forEach(hr => {
|
| 457 |
+
const x = padL + (hr / 24) * plotW;
|
| 458 |
+
ctx.fillStyle = '#94A3B8';
|
| 459 |
+
ctx.fillText(`${hr}h`, x - 6, h - 8);
|
| 460 |
+
});
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
function renderAll() {
|
| 464 |
+
const reg = regimes[state.regimeIdx];
|
| 465 |
+
document.getElementById('regime-badge').textContent = reg.name;
|
| 466 |
+
document.getElementById('active-cai-floor').textContent = `${reg.val.toExponential(2)} m/s²/√Hz`;
|
| 467 |
+
drawCAIChart();
|
| 468 |
+
drawAllanChart();
|
| 469 |
+
drawGGTChart();
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
document.querySelectorAll('.regime-btn').forEach(btn => {
|
| 473 |
+
btn.addEventListener('click', (e) => {
|
| 474 |
+
state.regimeIdx = parseInt(e.currentTarget.getAttribute('data-regime'));
|
| 475 |
+
document.querySelectorAll('.regime-btn').forEach(b => {
|
| 476 |
+
b.className = 'regime-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant';
|
| 477 |
+
});
|
| 478 |
+
e.currentTarget.className = 'regime-btn py-1 rounded border bg-blue-600 text-white border-blue-600 font-bold';
|
| 479 |
+
renderAll();
|
| 480 |
+
});
|
| 481 |
+
});
|
| 482 |
+
|
| 483 |
+
document.getElementById('tau-slider').addEventListener('input', (e) => {
|
| 484 |
+
state.tauLog = parseFloat(e.target.value);
|
| 485 |
+
drawAllanChart();
|
| 486 |
+
});
|
| 487 |
+
|
| 488 |
+
document.querySelectorAll('.deg-btn').forEach(btn => {
|
| 489 |
+
btn.addEventListener('click', (e) => {
|
| 490 |
+
state.harmonicDegree = parseInt(e.currentTarget.getAttribute('data-deg'));
|
| 491 |
+
document.getElementById('degree-readout').textContent = `N = ${state.harmonicDegree}`;
|
| 492 |
+
document.querySelectorAll('.deg-btn').forEach(b => {
|
| 493 |
+
b.className = 'deg-btn py-1 rounded border bg-surface border-outline-variant text-on-surface-variant';
|
| 494 |
+
});
|
| 495 |
+
e.currentTarget.className = 'deg-btn py-1 rounded border bg-emerald-600 text-white border-emerald-600 font-bold';
|
| 496 |
+
drawGGTChart();
|
| 497 |
+
});
|
| 498 |
+
});
|
| 499 |
+
|
| 500 |
+
window.addEventListener('resize', renderAll);
|
| 501 |
+
document.fonts.ready.then(renderAll);
|
| 502 |
+
</script>
|
| 503 |
+
</body>
|
| 504 |
+
</html>
|
ui/q_mct_flight_deck.html
ADDED
|
@@ -0,0 +1,1034 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Q-MCT v4.2 Interactive Flight Deck: Quantum Space Navigation and Adaptive Bot Swarm Simulator</title>
|
| 7 |
+
|
| 8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com">
|
| 10 |
+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
| 11 |
+
|
| 12 |
+
<!-- Tailwind CSS CDN -->
|
| 13 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 14 |
+
|
| 15 |
+
<style>
|
| 16 |
+
@font-face {
|
| 17 |
+
font-family: "Google Sans";
|
| 18 |
+
src: url("https://fonts.gstatic.com/s/googlesans/v58/4UaRrENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iq2vgCI.woff2") format("woff2");
|
| 19 |
+
font-weight: 400; font-style: normal; font-display: swap;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
:root, html[data-theme="light"] {
|
| 23 |
+
--surface-color: #FFFFFF;
|
| 24 |
+
--surface-card: #F8FAFC;
|
| 25 |
+
--surface-canvas: #0A0F1D;
|
| 26 |
+
--on-surface: #1B1C1D;
|
| 27 |
+
--on-surface-variant: #575B5F;
|
| 28 |
+
--on-surface-low: #727676;
|
| 29 |
+
|
| 30 |
+
--outline: #747775;
|
| 31 |
+
--outline-variant: #E2E8F0;
|
| 32 |
+
|
| 33 |
+
--google-blue: #1A73E8;
|
| 34 |
+
--cyan: #12B5CB;
|
| 35 |
+
--magenta: #F538A0;
|
| 36 |
+
--tangerine: #FA903E;
|
| 37 |
+
--mint-green: #81C995;
|
| 38 |
+
--red: #D93025;
|
| 39 |
+
--yellow: #FCC934;
|
| 40 |
+
}
|
| 41 |
+
html[data-theme="dark"] {
|
| 42 |
+
--surface-color: #141414;
|
| 43 |
+
--surface-card: #1E222B;
|
| 44 |
+
--surface-canvas: #060913;
|
| 45 |
+
--on-surface: #FFFFFF;
|
| 46 |
+
--on-surface-variant: #A2A9B0;
|
| 47 |
+
--on-surface-low: #9A9B9C;
|
| 48 |
+
|
| 49 |
+
--outline: #9A9B9C;
|
| 50 |
+
--outline-variant: #333942;
|
| 51 |
+
|
| 52 |
+
--google-blue: #1A73E8;
|
| 53 |
+
--cyan: #12B5CB;
|
| 54 |
+
--magenta: #F538A0;
|
| 55 |
+
--tangerine: #FA903E;
|
| 56 |
+
--mint-green: #81C995;
|
| 57 |
+
--red: #D93025;
|
| 58 |
+
--yellow: #FCC934;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.font-mono-code {
|
| 62 |
+
font-family: 'JetBrains Mono', monospace;
|
| 63 |
+
font-variant-numeric: tabular-nums;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
input[type=range] {
|
| 67 |
+
-webkit-appearance: none;
|
| 68 |
+
background: var(--outline-variant);
|
| 69 |
+
height: 4px;
|
| 70 |
+
border-radius: 2px;
|
| 71 |
+
}
|
| 72 |
+
input[type=range]::-webkit-slider-thumb {
|
| 73 |
+
-webkit-appearance: none;
|
| 74 |
+
height: 14px;
|
| 75 |
+
width: 14px;
|
| 76 |
+
border-radius: 50%;
|
| 77 |
+
background: var(--google-blue);
|
| 78 |
+
cursor: pointer;
|
| 79 |
+
}
|
| 80 |
+
</style>
|
| 81 |
+
<script>
|
| 82 |
+
tailwind.config = {
|
| 83 |
+
darkMode: ['class', '[data-theme="dark"]'],
|
| 84 |
+
theme: {
|
| 85 |
+
extend: {
|
| 86 |
+
fontFamily: {
|
| 87 |
+
sans: ['"Google Sans"', '"Open Sans"', 'sans-serif'],
|
| 88 |
+
mono: ['"JetBrains Mono"', 'monospace']
|
| 89 |
+
},
|
| 90 |
+
colors: {
|
| 91 |
+
surface: 'var(--surface-color)',
|
| 92 |
+
'surface-card': 'var(--surface-card)',
|
| 93 |
+
'surface-canvas': 'var(--surface-canvas)',
|
| 94 |
+
'on-surface': 'var(--on-surface)',
|
| 95 |
+
'on-surface-variant': 'var(--on-surface-variant)',
|
| 96 |
+
outline: 'var(--outline)',
|
| 97 |
+
'outline-variant': 'var(--outline-variant)',
|
| 98 |
+
'g-blue': 'var(--google-blue)',
|
| 99 |
+
'g-cyan': 'var(--cyan)',
|
| 100 |
+
'g-magenta': 'var(--magenta)',
|
| 101 |
+
'g-tangerine': 'var(--tangerine)',
|
| 102 |
+
'g-mint': 'var(--mint-green)',
|
| 103 |
+
'g-red': 'var(--red)',
|
| 104 |
+
'g-yellow': 'var(--yellow)'
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
}
|
| 109 |
+
</script>
|
| 110 |
+
</head>
|
| 111 |
+
<body class="font-sans bg-surface text-on-surface m-0 p-3 sm:p-5 flex justify-center w-full min-h-screen">
|
| 112 |
+
<figure class="w-full max-w-[800px] flex flex-col gap-5">
|
| 113 |
+
<div class="mb-0">
|
| 114 |
+
<h3 class="text-2xl sm:text-3xl font-normal text-on-surface leading-tight tracking-tight">
|
| 115 |
+
<b>Q-MCT v4.2 Interactive Flight Deck</b>: Quantum Space Navigation and Adaptive Bot Swarm Simulator
|
| 116 |
+
</h3>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div id="viz-container" class="relative w-full flex flex-col gap-3.5 box-border">
|
| 120 |
+
<!-- ROW 1: Persistent Mission Objective Header Banner -->
|
| 121 |
+
<div class="w-full bg-slate-900 text-white rounded-lg p-3 shadow-sm border border-slate-700 flex flex-col sm:flex-row sm:items-center justify-between gap-2.5">
|
| 122 |
+
<div class="flex items-start gap-2.5">
|
| 123 |
+
<div class="w-2.5 h-2.5 rounded-full bg-emerald-400 mt-1 animate-ping"></div>
|
| 124 |
+
<div>
|
| 125 |
+
<div class="flex items-center gap-2">
|
| 126 |
+
<span class="text-xs font-mono font-bold tracking-wider text-cyan-300">CORE OBJECTIVE</span>
|
| 127 |
+
<span class="text-[10px] px-1.5 py-0.5 rounded bg-blue-950 text-blue-300 border border-blue-700 font-mono">AUTONOMOUS ZERO-DRIFT</span>
|
| 128 |
+
</div>
|
| 129 |
+
<p class="text-xs text-slate-200 mt-0.5 leading-snug">
|
| 130 |
+
Deep space navigation via Cold-Atom Interferometry (CAI) & Gravity Gradient Tensors (GGT), integrated with an adaptive 6-bot surveillance swarm executing real-time Weighted Covariance Intersection (WCI) and QAOA path optimization.
|
| 131 |
+
</p>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
<div class="flex items-center gap-2 self-end sm:self-auto shrink-0 font-mono text-[11px]">
|
| 135 |
+
<span class="px-2 py-1 rounded bg-slate-800 border border-slate-600 text-emerald-400 flex items-center gap-1">
|
| 136 |
+
<span class="w-1.5 h-1.5 rounded-full bg-emerald-400"></span> 6/6 BOTS ONLINE
|
| 137 |
+
</span>
|
| 138 |
+
<span class="px-2 py-1 rounded bg-slate-800 border border-slate-600 text-cyan-300">
|
| 139 |
+
MOTHER: 210 kg
|
| 140 |
+
</span>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<!-- ROW 2: 6 Quantum Mode Selector Bar -->
|
| 145 |
+
<div class="w-full">
|
| 146 |
+
<div class="grid grid-cols-3 sm:grid-cols-6 gap-1.5" id="mode-tabs">
|
| 147 |
+
<button data-mode="1" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-blue-600 text-white border-blue-600 shadow-sm">
|
| 148 |
+
<span class="text-[10px] tracking-wider opacity-90">MODE 1</span>
|
| 149 |
+
<span>Q-INS / GGT</span>
|
| 150 |
+
</button>
|
| 151 |
+
<button data-mode="2" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue">
|
| 152 |
+
<span class="text-[10px] tracking-wider opacity-70">MODE 2</span>
|
| 153 |
+
<span>Q-PNT / QFI</span>
|
| 154 |
+
</button>
|
| 155 |
+
<button data-mode="3" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue">
|
| 156 |
+
<span class="text-[10px] tracking-wider opacity-70">MODE 3</span>
|
| 157 |
+
<span>Q-SWARM</span>
|
| 158 |
+
</button>
|
| 159 |
+
<button data-mode="4" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue">
|
| 160 |
+
<span class="text-[10px] tracking-wider opacity-70">MODE 4</span>
|
| 161 |
+
<span>Q-PATH</span>
|
| 162 |
+
</button>
|
| 163 |
+
<button data-mode="5" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue">
|
| 164 |
+
<span class="text-[10px] tracking-wider opacity-70">MODE 5</span>
|
| 165 |
+
<span>Q-CTRL</span>
|
| 166 |
+
</button>
|
| 167 |
+
<button data-mode="6" class="mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue">
|
| 168 |
+
<span class="text-[10px] tracking-wider opacity-70">MODE 6</span>
|
| 169 |
+
<span>Q-COMM</span>
|
| 170 |
+
</button>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<!-- ROW 3: Two-Column Interactive Simulation & Telemetry Deck -->
|
| 175 |
+
<div class="grid grid-cols-1 md:grid-cols-12 gap-3 w-full">
|
| 176 |
+
<!-- Column A: Canvas Viewport -->
|
| 177 |
+
<div class="md:col-span-7 flex flex-col rounded-lg border border-outline-variant overflow-hidden bg-slate-950 relative shadow-inner">
|
| 178 |
+
<div class="absolute top-2 left-2.5 right-2.5 z-10 flex items-center justify-between pointer-events-none">
|
| 179 |
+
<div class="flex items-center gap-1.5 bg-slate-900/80 backdrop-blur px-2 py-0.5 rounded border border-slate-700 text-[10px] font-mono text-cyan-300">
|
| 180 |
+
<span class="w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse"></span>
|
| 181 |
+
<span id="canvas-status-badge">ORBITAL FRAME: HILL (LVLH)</span>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="flex items-center gap-1 bg-slate-900/80 backdrop-blur px-2 py-0.5 rounded border border-slate-700 text-[10px] font-mono text-slate-300">
|
| 184 |
+
<span id="sim-fps">60 FPS</span>
|
| 185 |
+
<span class="text-slate-500">|</span>
|
| 186 |
+
<span id="sim-clock">T+00:14:22</span>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
|
| 190 |
+
<div class="relative w-full h-[320px] bg-slate-950">
|
| 191 |
+
<canvas id="space-canvas" class="w-full h-full block cursor-crosshair"></canvas>
|
| 192 |
+
|
| 193 |
+
<div id="quantum-fringe-box" class="absolute bottom-2 left-2.5 bg-slate-900/90 border border-slate-700 rounded p-1.5 pointer-events-none backdrop-blur flex flex-col gap-1 w-36 shadow-lg">
|
| 194 |
+
<div class="flex justify-between items-center text-[9px] font-mono text-slate-400">
|
| 195 |
+
<span class="text-cyan-300 font-bold">CAI WAVE-PACKET</span>
|
| 196 |
+
<span id="fringe-contrast-val" class="text-emerald-400">C: 88%</span>
|
| 197 |
+
</div>
|
| 198 |
+
<canvas id="fringe-canvas" width="130" height="26" class="w-full h-[26px] bg-slate-950 rounded"></canvas>
|
| 199 |
+
</div>
|
| 200 |
+
|
| 201 |
+
<div class="absolute bottom-2 right-2.5 bg-slate-900/90 border border-slate-700 rounded px-2 py-1 text-[9px] font-mono text-slate-300 pointer-events-none backdrop-blur flex flex-col items-end gap-0.5">
|
| 202 |
+
<div class="text-cyan-300 font-semibold" id="hud-nav-mode">MODE: Q-INS GRAV-GRAD</div>
|
| 203 |
+
<div class="text-slate-400" id="hud-sub-metric">RADIAL ERR: 42.1 m < 100m</div>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
|
| 208 |
+
<!-- Column B: Dynamic Mode Control & Real-time Math Panel -->
|
| 209 |
+
<div class="md:col-span-5 flex flex-col justify-between bg-surface-card border border-outline-variant rounded-lg p-3 text-xs gap-3">
|
| 210 |
+
<div id="mode-controls-container" class="flex flex-col gap-2.5"></div>
|
| 211 |
+
|
| 212 |
+
<div class="pt-2 border-t border-outline-variant grid grid-cols-2 gap-2 font-mono">
|
| 213 |
+
<div class="bg-surface rounded p-1.5 border border-outline-variant flex flex-col">
|
| 214 |
+
<span class="text-[9px] text-on-surface-variant uppercase tracking-wider" id="kpi-1-label">SENSITIVITY Δa</span>
|
| 215 |
+
<span class="text-xs font-bold text-g-blue truncate" id="kpi-1-val">5.00e-10 m/s²/√Hz</span>
|
| 216 |
+
</div>
|
| 217 |
+
<div class="bg-surface rounded p-1.5 border border-outline-variant flex flex-col">
|
| 218 |
+
<span class="text-[9px] text-on-surface-variant uppercase tracking-wider" id="kpi-2-label">GGT TRACE Tr(V)</span>
|
| 219 |
+
<span class="text-xs font-bold text-g-mint truncate" id="kpi-2-val">0.00 E (LAPLACE)</span>
|
| 220 |
+
</div>
|
| 221 |
+
<div class="bg-surface rounded p-1.5 border border-outline-variant flex flex-col">
|
| 222 |
+
<span class="text-[9px] text-on-surface-variant uppercase tracking-wider" id="kpi-3-label">WCI WEIGHT ω</span>
|
| 223 |
+
<span class="text-xs font-bold text-cyan-600 dark:text-cyan-400 truncate" id="kpi-3-val">0.61 (OPTIMAL)</span>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="bg-surface rounded p-1.5 border border-outline-variant flex flex-col">
|
| 226 |
+
<span class="text-[9px] text-on-surface-variant uppercase tracking-wider" id="kpi-4-label">PATH LENGTH</span>
|
| 227 |
+
<span class="text-xs font-bold text-amber-600 dark:text-amber-400 truncate" id="kpi-4-val">1104.11 m (QUAV)</span>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
|
| 233 |
+
<!-- ROW 4: Live 6-Bot Dynamic Telemetry Strip & Swarm Flight Director -->
|
| 234 |
+
<div class="w-full bg-surface-card border border-outline-variant rounded-lg p-2.5 flex flex-col gap-2">
|
| 235 |
+
<div class="flex flex-wrap items-center justify-between gap-2">
|
| 236 |
+
<div class="flex items-center gap-2">
|
| 237 |
+
<span class="text-xs font-bold tracking-wider text-on-surface">6-BOT SURVEILLANCE MATRIX</span>
|
| 238 |
+
<span class="text-[10px] text-on-surface-variant font-mono">(5 kg 6U Nanosatellites · MAGNUS Protocol)</span>
|
| 239 |
+
</div>
|
| 240 |
+
<div class="flex items-center gap-1 text-[11px]">
|
| 241 |
+
<span class="text-on-surface-variant text-[10px] mr-1 hidden sm:inline">FORMATION:</span>
|
| 242 |
+
<button id="btn-form-trailing" class="px-2 py-0.5 rounded text-[10px] font-medium border bg-blue-600 text-white border-blue-600 transition">TRAILING</button>
|
| 243 |
+
<button id="btn-form-cluster" class="px-2 py-0.5 rounded text-[10px] font-medium border bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue transition">CLUSTER</button>
|
| 244 |
+
<button id="btn-form-constellation" class="px-2 py-0.5 rounded text-[10px] font-medium border bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue transition">CONSTELLATION</button>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-1.5" id="bots-matrix-container"></div>
|
| 249 |
+
|
| 250 |
+
<div class="pt-1.5 border-t border-outline-variant flex flex-wrap items-center justify-between gap-2 text-xs">
|
| 251 |
+
<div class="flex items-center gap-1.5">
|
| 252 |
+
<button id="btn-play-pause" class="px-2.5 py-1 rounded bg-g-blue text-white font-medium hover:opacity-90 flex items-center gap-1">
|
| 253 |
+
<span id="play-pause-icon">⏸</span>
|
| 254 |
+
<span id="play-pause-label">Pause Sim</span>
|
| 255 |
+
</button>
|
| 256 |
+
<button id="btn-step" class="px-2 py-1 rounded bg-surface border border-outline-variant text-on-surface hover:bg-slate-100 dark:hover:bg-zinc-800">
|
| 257 |
+
Step ⏯
|
| 258 |
+
</button>
|
| 259 |
+
<button id="btn-anomaly" class="px-2 py-1 rounded bg-rose-600 text-white font-medium hover:bg-rose-700 transition">
|
| 260 |
+
⚡ Inject Anomaly
|
| 261 |
+
</button>
|
| 262 |
+
</div>
|
| 263 |
+
<div class="flex items-center gap-2 font-mono text-[11px] text-on-surface-variant">
|
| 264 |
+
<span>SPEED:</span>
|
| 265 |
+
<button class="sim-speed-btn px-1.5 py-0.5 rounded border border-outline-variant bg-surface" data-speed="0.5">0.5x</button>
|
| 266 |
+
<button class="sim-speed-btn px-1.5 py-0.5 rounded border border-blue-600 bg-blue-600 text-white" data-speed="1">1.0x</button>
|
| 267 |
+
<button class="sim-speed-btn px-1.5 py-0.5 rounded border border-outline-variant bg-surface" data-speed="2">2.0x</button>
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
</div>
|
| 271 |
+
</div>
|
| 272 |
+
</figure>
|
| 273 |
+
|
| 274 |
+
<script>
|
| 275 |
+
document.fonts.ready.then(() => {
|
| 276 |
+
const state = {
|
| 277 |
+
currentMode: 1,
|
| 278 |
+
simRunning: true,
|
| 279 |
+
simSpeed: 1.0,
|
| 280 |
+
simTimeSeconds: 862.0,
|
| 281 |
+
formation: 'trailing',
|
| 282 |
+
anomalyInjected: false,
|
| 283 |
+
anomalyTimer: 0,
|
| 284 |
+
m1_duration2T: 5,
|
| 285 |
+
m1_counterRotatingMirror: true,
|
| 286 |
+
m2_tau: 1.0,
|
| 287 |
+
m2_distanceAU: 1.42,
|
| 288 |
+
m3_pld: 0.12,
|
| 289 |
+
m3_omega: 0.61,
|
| 290 |
+
m4_algorithm: 'QUAV-QAOA',
|
| 291 |
+
m4_safetyBuffer: 1.5,
|
| 292 |
+
m4_cs: 2,
|
| 293 |
+
m5_pqcLayers: 4,
|
| 294 |
+
m5_attitudeDisturbance: 0.0,
|
| 295 |
+
m5_roll: 0.02,
|
| 296 |
+
m5_pitch: -0.01,
|
| 297 |
+
m5_yaw: 0.01,
|
| 298 |
+
m6_elevation: 48,
|
| 299 |
+
bots: [
|
| 300 |
+
{ id: 'BOT-01', x: 0, y: 0, r: 12.4, omega: 0.61, link: true, forAngle: 55, status: 'TRACKING' },
|
| 301 |
+
{ id: 'BOT-02', x: 0, y: 0, r: 24.1, omega: 0.58, link: true, forAngle: 55, status: 'TRACKING' },
|
| 302 |
+
{ id: 'BOT-03', x: 0, y: 0, r: 35.8, omega: 0.65, link: true, forAngle: 55, status: 'TRACKING' },
|
| 303 |
+
{ id: 'BOT-04', x: 0, y: 0, r: 48.2, omega: 0.52, link: true, forAngle: 55, status: 'TRACKING' },
|
| 304 |
+
{ id: 'BOT-05', x: 0, y: 0, r: 60.5, omega: 0.63, link: true, forAngle: 55, status: 'TRACKING' },
|
| 305 |
+
{ id: 'BOT-06', x: 0, y: 0, r: 72.9, omega: 0.59, link: true, forAngle: 55, status: 'TRACKING' },
|
| 306 |
+
],
|
| 307 |
+
obstacles: [
|
| 308 |
+
{ x: 140, y: -45, size: 14, label: 'DEBRIS-Alpha' },
|
| 309 |
+
{ x: -90, y: 65, size: 18, label: 'DEBRIS-Beta' },
|
| 310 |
+
{ x: 210, y: 80, size: 12, label: 'ASTEROID-07' },
|
| 311 |
+
]
|
| 312 |
+
};
|
| 313 |
+
|
| 314 |
+
const spaceCanvas = document.getElementById('space-canvas');
|
| 315 |
+
const sCtx = spaceCanvas.getContext('2d');
|
| 316 |
+
const fringeCanvas = document.getElementById('fringe-canvas');
|
| 317 |
+
const fCtx = fringeCanvas.getContext('2d');
|
| 318 |
+
|
| 319 |
+
function resizeCanvas() {
|
| 320 |
+
const rect = spaceCanvas.parentElement.getBoundingClientRect();
|
| 321 |
+
spaceCanvas.width = rect.width * (window.devicePixelRatio || 1);
|
| 322 |
+
spaceCanvas.height = rect.height * (window.devicePixelRatio || 1);
|
| 323 |
+
sCtx.scale(window.devicePixelRatio || 1, window.devicePixelRatio || 1);
|
| 324 |
+
}
|
| 325 |
+
window.addEventListener('resize', resizeCanvas);
|
| 326 |
+
resizeCanvas();
|
| 327 |
+
|
| 328 |
+
const controlsContainer = document.getElementById('mode-controls-container');
|
| 329 |
+
|
| 330 |
+
function renderModeControls() {
|
| 331 |
+
let html = '';
|
| 332 |
+
if (state.currentMode === 1) {
|
| 333 |
+
html = `
|
| 334 |
+
<div class="flex items-center justify-between">
|
| 335 |
+
<span class="font-bold text-xs text-on-surface">MODE 1: Q-INS / GGT NAVIGATION</span>
|
| 336 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300">COLD-ATOM CAI</span>
|
| 337 |
+
</div>
|
| 338 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 339 |
+
Atom interferometry with Raman counter-rotating mirror compensation to cancel Coriolis noise & match gravity gradients.
|
| 340 |
+
</p>
|
| 341 |
+
<div class="flex flex-col gap-1.5">
|
| 342 |
+
<label class="text-[11px] font-medium text-on-surface flex justify-between">
|
| 343 |
+
<span>Interrogation Time (2T):</span>
|
| 344 |
+
<span class="font-mono text-g-blue">${state.m1_duration2T}s</span>
|
| 345 |
+
</label>
|
| 346 |
+
<div class="grid grid-cols-3 gap-1">
|
| 347 |
+
<button class="m1-2t-btn px-2 py-1 rounded text-[11px] font-mono border ${state.m1_duration2T === 5 ? 'bg-blue-600 text-white border-blue-600' : 'bg-surface border-outline-variant text-on-surface'}" data-2t="5">5s (SOTA)</button>
|
| 348 |
+
<button class="m1-2t-btn px-2 py-1 rounded text-[11px] font-mono border ${state.m1_duration2T === 10 ? 'bg-blue-600 text-white border-blue-600' : 'bg-surface border-outline-variant text-on-surface'}" data-2t="10">10s (QPN)</button>
|
| 349 |
+
<button class="m1-2t-btn px-2 py-1 rounded text-[11px] font-mono border ${state.m1_duration2T === 20 ? 'bg-blue-600 text-white border-blue-600' : 'bg-surface border-outline-variant text-on-surface'}" data-2t="20">20s (BEC)</button>
|
| 350 |
+
</div>
|
| 351 |
+
</div>
|
| 352 |
+
<div class="flex items-center justify-between py-1 border-t border-outline-variant">
|
| 353 |
+
<span class="text-[11px] text-on-surface">Raman Counter-Rotating Mirror:</span>
|
| 354 |
+
<button id="toggle-mirror" class="px-2.5 py-1 rounded text-[11px] font-mono font-medium border ${state.m1_counterRotatingMirror ? 'bg-emerald-600 text-white border-emerald-600' : 'bg-rose-600 text-white border-rose-600'}">
|
| 355 |
+
${state.m1_counterRotatingMirror ? 'ACTIVE (>50%)' : 'OFF (1e-8)'}
|
| 356 |
+
</button>
|
| 357 |
+
</div>
|
| 358 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 359 |
+
<div class="flex justify-between">
|
| 360 |
+
<span class="text-on-surface-variant">Cold Gyro Ω:</span>
|
| 361 |
+
<span class="text-on-surface font-semibold">-1142 ± 29 µrad/s</span>
|
| 362 |
+
</div>
|
| 363 |
+
<div class="flex justify-between">
|
| 364 |
+
<span class="text-on-surface-variant">GGT Tensor Vxx, Vyy, Vzz:</span>
|
| 365 |
+
<span class="text-emerald-600 dark:text-emerald-400 font-semibold">+28.4, -14.2, -14.2 E</span>
|
| 366 |
+
</div>
|
| 367 |
+
<div class="flex justify-between">
|
| 368 |
+
<span class="text-on-surface-variant">Laplace Trace Constraint:</span>
|
| 369 |
+
<span class="text-cyan-600 dark:text-cyan-400 font-bold">Vxx+Vyy+Vzz = 0.00 E</span>
|
| 370 |
+
</div>
|
| 371 |
+
</div>`;
|
| 372 |
+
} else if (state.currentMode === 2) {
|
| 373 |
+
html = `
|
| 374 |
+
<div class="flex items-center justify-between">
|
| 375 |
+
<span class="font-bold text-xs text-on-surface">MODE 2: Q-PNT & RELATIVISTIC QFI</span>
|
| 376 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300">40.5 GHz Hg+ TRAP</span>
|
| 377 |
+
</div>
|
| 378 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 379 |
+
Deep Space Atomic Clock trapped-ion stability with Schwarzschild spacetime Quantum Fisher Information estimation.
|
| 380 |
+
</p>
|
| 381 |
+
<div class="flex flex-col gap-1">
|
| 382 |
+
<div class="flex justify-between text-[11px]">
|
| 383 |
+
<span>Averaging Time (τ):</span>
|
| 384 |
+
<span class="font-mono text-g-blue">${state.m2_tau.toFixed(1)} s</span>
|
| 385 |
+
</div>
|
| 386 |
+
<input type="range" id="slider-tau" min="1" max="1000" step="1" value="${state.m2_tau}" class="w-full">
|
| 387 |
+
</div>
|
| 388 |
+
<div class="flex flex-col gap-1">
|
| 389 |
+
<div class="flex justify-between text-[11px]">
|
| 390 |
+
<span>Earth Distance (AU):</span>
|
| 391 |
+
<span class="font-mono text-cyan-600 dark:text-cyan-400">${state.m2_distanceAU.toFixed(2)} AU</span>
|
| 392 |
+
</div>
|
| 393 |
+
<input type="range" id="slider-au" min="0.1" max="5.0" step="0.05" value="${state.m2_distanceAU}" class="w-full">
|
| 394 |
+
</div>
|
| 395 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 396 |
+
<div class="flex justify-between">
|
| 397 |
+
<span class="text-on-surface-variant">One-Way Light Time (OWLT):</span>
|
| 398 |
+
<span class="text-on-surface font-semibold">${((state.m2_distanceAU * 149.6e6) / 299792).toFixed(1)} s</span>
|
| 399 |
+
</div>
|
| 400 |
+
<div class="flex justify-between">
|
| 401 |
+
<span class="text-on-surface-variant">Fractional Stability σ_y(τ):</span>
|
| 402 |
+
<span class="text-g-blue font-semibold">${(1.5e-13 / Math.sqrt(state.m2_tau)).toExponential(2)}</span>
|
| 403 |
+
</div>
|
| 404 |
+
<div class="flex justify-between">
|
| 405 |
+
<span class="text-on-surface-variant">Schwarzschild QFI (F_Q):</span>
|
| 406 |
+
<span class="text-emerald-600 dark:text-emerald-400 font-bold">1.48e+18 rad⁻²</span>
|
| 407 |
+
</div>
|
| 408 |
+
</div>`;
|
| 409 |
+
} else if (state.currentMode === 3) {
|
| 410 |
+
html = `
|
| 411 |
+
<div class="flex items-center justify-between">
|
| 412 |
+
<span class="font-bold text-xs text-on-surface">MODE 3: SWARM COOPERATIVE WCI</span>
|
| 413 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-emerald-100 dark:bg-emerald-900 text-emerald-700 dark:text-emerald-300">GCC-AKF FUSION</span>
|
| 414 |
+
</div>
|
| 415 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 416 |
+
Weighted Covariance Intersection with GCC-AKF outlier rejection under random inter-satellite link drops (p_ld).
|
| 417 |
+
</p>
|
| 418 |
+
<div class="flex flex-col gap-1">
|
| 419 |
+
<div class="flex justify-between text-[11px]">
|
| 420 |
+
<span>Link Drop Probability (p_ld):</span>
|
| 421 |
+
<span class="font-mono text-rose-500 font-bold">${state.m3_pld.toFixed(2)}</span>
|
| 422 |
+
</div>
|
| 423 |
+
<input type="range" id="slider-pld" min="0.00" max="0.50" step="0.02" value="${state.m3_pld}" class="w-full">
|
| 424 |
+
</div>
|
| 425 |
+
<div class="flex flex-col gap-1">
|
| 426 |
+
<div class="flex justify-between text-[11px]">
|
| 427 |
+
<span>WCI Fusion Weight (ω):</span>
|
| 428 |
+
<span class="font-mono text-cyan-600 dark:text-cyan-400 font-bold">${state.m3_omega.toFixed(2)}</span>
|
| 429 |
+
</div>
|
| 430 |
+
<input type="range" id="slider-omega" min="0.01" max="0.99" step="0.01" value="${state.m3_omega}" class="w-full">
|
| 431 |
+
</div>
|
| 432 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 433 |
+
<div class="flex justify-between">
|
| 434 |
+
<span class="text-on-surface-variant">Expected Active Links E[Ni]:</span>
|
| 435 |
+
<span class="text-emerald-600 dark:text-emerald-400 font-semibold">${((1 - state.m3_pld) * 5).toFixed(2)} / 5</span>
|
| 436 |
+
</div>
|
| 437 |
+
<div class="flex justify-between">
|
| 438 |
+
<span class="text-on-surface-variant">Fused Covariance Tr(P):</span>
|
| 439 |
+
<span class="text-on-surface font-semibold">${(0.14 / state.m3_omega + 0.08 / (1 - state.m3_omega)).toFixed(3)} m²</span>
|
| 440 |
+
</div>
|
| 441 |
+
<div class="flex justify-between">
|
| 442 |
+
<span class="text-on-surface-variant">GCC-AKF Innovation State:</span>
|
| 443 |
+
<span class="${state.anomalyInjected ? 'text-rose-600 font-bold animate-pulse' : 'text-emerald-600'}">
|
| 444 |
+
${state.anomalyInjected ? 'REJECTED (SPURIOUS)' : 'NOMINAL CONSISTENT'}
|
| 445 |
+
</span>
|
| 446 |
+
</div>
|
| 447 |
+
</div>`;
|
| 448 |
+
} else if (state.currentMode === 4) {
|
| 449 |
+
html = `
|
| 450 |
+
<div class="flex items-center justify-between">
|
| 451 |
+
<span class="font-bold text-xs text-on-surface">MODE 4: QUAV-QAOA PATH OPTIMIZER</span>
|
| 452 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300">DARBO κ_s=4</span>
|
| 453 |
+
</div>
|
| 454 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 455 |
+
Quantum approximate optimization with obstacle buffer scaling and mean-field classical spin dynamics.
|
| 456 |
+
</p>
|
| 457 |
+
<div class="flex flex-col gap-1.5">
|
| 458 |
+
<label class="text-[11px] font-medium text-on-surface">Algorithm Core:</label>
|
| 459 |
+
<div class="grid grid-cols-2 gap-1 text-[11px] font-mono">
|
| 460 |
+
<button class="m4-algo-btn px-2 py-1 rounded border text-left truncate ${state.m4_algorithm === 'QUAV-QAOA' ? 'bg-purple-600 text-white border-purple-600' : 'bg-surface border-outline-variant text-on-surface'}" data-algo="QUAV-QAOA">QUAV-QAOA (1104m)</button>
|
| 461 |
+
<button class="m4-algo-btn px-2 py-1 rounded border text-left truncate ${state.m4_algorithm === 'Mean-Field AOA' ? 'bg-purple-600 text-white border-purple-600' : 'bg-surface border-outline-variant text-on-surface'}" data-algo="Mean-Field AOA">Mean-Field O(pN²)</button>
|
| 462 |
+
<button class="m4-algo-btn px-2 py-1 rounded border text-left truncate ${state.m4_algorithm === 'RRT' ? 'bg-purple-600 text-white border-purple-600' : 'bg-surface border-outline-variant text-on-surface'}" data-algo="RRT">RRT (1561.99m)</button>
|
| 463 |
+
<button class="m4-algo-btn px-2 py-1 rounded border text-left truncate ${state.m4_algorithm === 'A*' ? 'bg-purple-600 text-white border-purple-600' : 'bg-surface border-outline-variant text-on-surface'}" data-algo="A*">A* (380.00m)</button>
|
| 464 |
+
</div>
|
| 465 |
+
</div>
|
| 466 |
+
<div class="flex flex-col gap-1">
|
| 467 |
+
<div class="flex justify-between text-[11px]">
|
| 468 |
+
<span>Safety Buffer (s_x, s_y):</span>
|
| 469 |
+
<span class="font-mono text-purple-600 font-bold">${state.m4_safetyBuffer.toFixed(1)}x</span>
|
| 470 |
+
</div>
|
| 471 |
+
<input type="range" id="slider-buffer" min="1.0" max="3.0" step="0.1" value="${state.m4_safetyBuffer}" class="w-full">
|
| 472 |
+
</div>
|
| 473 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 474 |
+
<div class="flex justify-between">
|
| 475 |
+
<span class="text-on-surface-variant">Trotter Depth / Exponent:</span>
|
| 476 |
+
<span class="text-on-surface font-semibold">p = 12 / ω = 0.61</span>
|
| 477 |
+
</div>
|
| 478 |
+
<div class="flex justify-between">
|
| 479 |
+
<span class="text-on-surface-variant">DARBO Exploration β:</span>
|
| 480 |
+
<span class="text-emerald-600 font-semibold">0.20 (c_s = ${state.m4_cs}/4)</span>
|
| 481 |
+
</div>
|
| 482 |
+
<div class="flex justify-between">
|
| 483 |
+
<span class="text-on-surface-variant">Parisi Bound ε_P:</span>
|
| 484 |
+
<span class="text-cyan-600 font-bold">-0.763 (CONVERGED)</span>
|
| 485 |
+
</div>
|
| 486 |
+
</div>`;
|
| 487 |
+
} else if (state.currentMode === 5) {
|
| 488 |
+
html = `
|
| 489 |
+
<div class="flex items-center justify-between">
|
| 490 |
+
<span class="font-bold text-xs text-on-surface">MODE 5: PQC QUANTUM RL ATTITUDE</span>
|
| 491 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-emerald-100 dark:bg-emerald-900 text-emerald-700 dark:text-emerald-300">4.29x COMPACT</span>
|
| 492 |
+
</div>
|
| 493 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 494 |
+
Parameterized Quantum Circuit attitude restoration using symmetric difference quotient observable loss gradient.
|
| 495 |
+
</p>
|
| 496 |
+
<div class="flex flex-col gap-1">
|
| 497 |
+
<div class="flex justify-between text-[11px]">
|
| 498 |
+
<span>PQC Entanglement Layers (L):</span>
|
| 499 |
+
<span class="font-mono text-emerald-600 font-bold">${state.m5_pqcLayers} Layers</span>
|
| 500 |
+
</div>
|
| 501 |
+
<input type="range" id="slider-pqc" min="2" max="8" step="1" value="${state.m5_pqcLayers}" class="w-full">
|
| 502 |
+
</div>
|
| 503 |
+
<div class="flex items-center justify-between py-1 border-t border-outline-variant">
|
| 504 |
+
<span class="text-[11px] text-on-surface">Momentum Disturbance:</span>
|
| 505 |
+
<button id="btn-torque" class="px-2.5 py-1 rounded text-[11px] font-mono font-medium border bg-amber-600 text-white border-amber-600 hover:bg-amber-700">
|
| 506 |
+
⚡ Inject 4.5°/s Torque
|
| 507 |
+
</button>
|
| 508 |
+
</div>
|
| 509 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 510 |
+
<div class="flex justify-between">
|
| 511 |
+
<span class="text-on-surface-variant">Memory Parameter Reduction:</span>
|
| 512 |
+
<span class="text-emerald-600 font-bold">4.29x vs DQN (3.77x AC)</span>
|
| 513 |
+
</div>
|
| 514 |
+
<div class="flex justify-between">
|
| 515 |
+
<span class="text-on-surface-variant">Estimated Euler Rates [R,P,Y]:</span>
|
| 516 |
+
<span class="text-on-surface font-semibold">${state.m5_roll.toFixed(2)}°, ${state.m5_pitch.toFixed(2)}°, ${state.m5_yaw.toFixed(2)}°</span>
|
| 517 |
+
</div>
|
| 518 |
+
<div class="flex justify-between">
|
| 519 |
+
<span class="text-on-surface-variant">Gradient Optimization:</span>
|
| 520 |
+
<span class="text-g-blue font-semibold">Sym-Diff Quotient ΔL/Δθ</span>
|
| 521 |
+
</div>
|
| 522 |
+
</div>`;
|
| 523 |
+
} else if (state.currentMode === 6) {
|
| 524 |
+
html = `
|
| 525 |
+
<div class="flex items-center justify-between">
|
| 526 |
+
<span class="font-bold text-xs text-on-surface">MODE 6: CUBESAT QKD & CCSDS DTN</span>
|
| 527 |
+
<span class="text-[10px] font-mono px-1.5 py-0.5 rounded bg-cyan-100 dark:bg-cyan-900 text-cyan-700 dark:text-cyan-300">100 MHz ALICE</span>
|
| 528 |
+
</div>
|
| 529 |
+
<p class="text-[11px] text-on-surface-variant leading-tight">
|
| 530 |
+
Hybrid de Bruijn code (HDBC) pulsed laser synchronization with 1.99 Mbits LEO quantum key distribution.
|
| 531 |
+
</p>
|
| 532 |
+
<div class="flex flex-col gap-1">
|
| 533 |
+
<div class="flex justify-between text-[11px]">
|
| 534 |
+
<span>Elevation Angle (θ):</span>
|
| 535 |
+
<span class="font-mono text-cyan-600 dark:text-cyan-400 font-bold">${state.m6_elevation}° (>20° Lock)</span>
|
| 536 |
+
</div>
|
| 537 |
+
<input type="range" id="slider-elev" min="20" max="90" step="1" value="${state.m6_elevation}" class="w-full">
|
| 538 |
+
</div>
|
| 539 |
+
<div class="bg-surface rounded p-2 border border-outline-variant text-[11px] font-mono flex flex-col gap-1">
|
| 540 |
+
<div class="flex justify-between">
|
| 541 |
+
<span class="text-on-surface-variant">Single Pass Key Yield:</span>
|
| 542 |
+
<span class="text-emerald-600 font-bold">${(1.99 * Math.sin(state.m6_elevation * Math.PI / 180)).toFixed(2)} Mbits (340s)</span>
|
| 543 |
+
</div>
|
| 544 |
+
<div class="flex justify-between">
|
| 545 |
+
<span class="text-on-surface-variant">Daily Contact Time Window:</span>
|
| 546 |
+
<span class="text-on-surface font-semibold">2,010 s / day (33.5 min)</span>
|
| 547 |
+
</div>
|
| 548 |
+
<div class="flex justify-between">
|
| 549 |
+
<span class="text-on-surface-variant">CCSDS DTN Protocol Tier:</span>
|
| 550 |
+
<span class="text-cyan-600 font-bold">>10 Mbps Optical (Wide)</span>
|
| 551 |
+
</div>
|
| 552 |
+
<div class="flex justify-between">
|
| 553 |
+
<span class="text-on-surface-variant">DP Inter-Sat Bundles:</span>
|
| 554 |
+
<span class="text-on-surface font-semibold">8,341 / <1 min runtime</span>
|
| 555 |
+
</div>
|
| 556 |
+
</div>`;
|
| 557 |
+
}
|
| 558 |
+
controlsContainer.innerHTML = html;
|
| 559 |
+
attachModeControlListeners();
|
| 560 |
+
updateKPIs();
|
| 561 |
+
}
|
| 562 |
+
|
| 563 |
+
function attachModeControlListeners() {
|
| 564 |
+
if (state.currentMode === 1) {
|
| 565 |
+
document.querySelectorAll('.m1-2t-btn').forEach(btn => {
|
| 566 |
+
btn.addEventListener('click', (e) => {
|
| 567 |
+
state.m1_duration2T = parseInt(e.currentTarget.getAttribute('data-2t'));
|
| 568 |
+
renderModeControls();
|
| 569 |
+
});
|
| 570 |
+
});
|
| 571 |
+
const mirrorBtn = document.getElementById('toggle-mirror');
|
| 572 |
+
if (mirrorBtn) {
|
| 573 |
+
mirrorBtn.addEventListener('click', () => {
|
| 574 |
+
state.m1_counterRotatingMirror = !state.m1_counterRotatingMirror;
|
| 575 |
+
renderModeControls();
|
| 576 |
+
});
|
| 577 |
+
}
|
| 578 |
+
} else if (state.currentMode === 2) {
|
| 579 |
+
document.getElementById('slider-tau')?.addEventListener('input', (e) => {
|
| 580 |
+
state.m2_tau = parseFloat(e.target.value);
|
| 581 |
+
renderModeControls();
|
| 582 |
+
});
|
| 583 |
+
document.getElementById('slider-au')?.addEventListener('input', (e) => {
|
| 584 |
+
state.m2_distanceAU = parseFloat(e.target.value);
|
| 585 |
+
renderModeControls();
|
| 586 |
+
});
|
| 587 |
+
} else if (state.currentMode === 3) {
|
| 588 |
+
document.getElementById('slider-pld')?.addEventListener('input', (e) => {
|
| 589 |
+
state.m3_pld = parseFloat(e.target.value);
|
| 590 |
+
renderModeControls();
|
| 591 |
+
});
|
| 592 |
+
document.getElementById('slider-omega')?.addEventListener('input', (e) => {
|
| 593 |
+
state.m3_omega = parseFloat(e.target.value);
|
| 594 |
+
state.bots.forEach(b => b.omega = state.m3_omega);
|
| 595 |
+
renderModeControls();
|
| 596 |
+
renderBotMatrix();
|
| 597 |
+
});
|
| 598 |
+
} else if (state.currentMode === 4) {
|
| 599 |
+
document.querySelectorAll('.m4-algo-btn').forEach(btn => {
|
| 600 |
+
btn.addEventListener('click', (e) => {
|
| 601 |
+
state.m4_algorithm = e.currentTarget.getAttribute('data-algo');
|
| 602 |
+
renderModeControls();
|
| 603 |
+
});
|
| 604 |
+
});
|
| 605 |
+
document.getElementById('slider-buffer')?.addEventListener('input', (e) => {
|
| 606 |
+
state.m4_safetyBuffer = parseFloat(e.target.value);
|
| 607 |
+
renderModeControls();
|
| 608 |
+
});
|
| 609 |
+
} else if (state.currentMode === 5) {
|
| 610 |
+
document.getElementById('slider-pqc')?.addEventListener('input', (e) => {
|
| 611 |
+
state.m5_pqcLayers = parseInt(e.target.value);
|
| 612 |
+
renderModeControls();
|
| 613 |
+
});
|
| 614 |
+
document.getElementById('btn-torque')?.addEventListener('click', () => {
|
| 615 |
+
state.m5_attitudeDisturbance = 4.5;
|
| 616 |
+
state.m5_yaw = 4.5;
|
| 617 |
+
renderModeControls();
|
| 618 |
+
});
|
| 619 |
+
} else if (state.currentMode === 6) {
|
| 620 |
+
document.getElementById('slider-elev')?.addEventListener('input', (e) => {
|
| 621 |
+
state.m6_elevation = parseInt(e.target.value);
|
| 622 |
+
renderModeControls();
|
| 623 |
+
});
|
| 624 |
+
}
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
+
document.querySelectorAll('.mode-tab-btn').forEach(btn => {
|
| 628 |
+
btn.addEventListener('click', (e) => {
|
| 629 |
+
state.currentMode = parseInt(e.currentTarget.getAttribute('data-mode'));
|
| 630 |
+
document.querySelectorAll('.mode-tab-btn').forEach(b => {
|
| 631 |
+
b.className = 'mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue';
|
| 632 |
+
});
|
| 633 |
+
e.currentTarget.className = 'mode-tab-btn py-2 px-1 text-center rounded border transition text-xs font-semibold flex flex-col items-center justify-center gap-0.5 bg-blue-600 text-white border-blue-600 shadow-sm';
|
| 634 |
+
renderModeControls();
|
| 635 |
+
});
|
| 636 |
+
});
|
| 637 |
+
|
| 638 |
+
function setFormation(form) {
|
| 639 |
+
state.formation = form;
|
| 640 |
+
['trailing', 'cluster', 'constellation'].forEach(f => {
|
| 641 |
+
const btn = document.getElementById(`btn-form-${f}`);
|
| 642 |
+
btn.className = (f === form)
|
| 643 |
+
? 'px-2 py-0.5 rounded text-[10px] font-medium border bg-blue-600 text-white border-blue-600 transition'
|
| 644 |
+
: 'px-2 py-0.5 rounded text-[10px] font-medium border bg-surface text-on-surface-variant border-outline-variant hover:border-g-blue transition';
|
| 645 |
+
});
|
| 646 |
+
}
|
| 647 |
+
document.getElementById('btn-form-trailing').addEventListener('click', () => setFormation('trailing'));
|
| 648 |
+
document.getElementById('btn-form-cluster').addEventListener('click', () => setFormation('cluster'));
|
| 649 |
+
document.getElementById('btn-form-constellation').addEventListener('click', () => setFormation('constellation'));
|
| 650 |
+
|
| 651 |
+
const playPauseBtn = document.getElementById('btn-play-pause');
|
| 652 |
+
playPauseBtn.addEventListener('click', () => {
|
| 653 |
+
state.simRunning = !state.simRunning;
|
| 654 |
+
document.getElementById('play-pause-icon').textContent = state.simRunning ? '⏸' : '▶';
|
| 655 |
+
document.getElementById('play-pause-label').textContent = state.simRunning ? 'Pause Sim' : 'Resume';
|
| 656 |
+
});
|
| 657 |
+
|
| 658 |
+
document.getElementById('btn-step').addEventListener('click', () => {
|
| 659 |
+
state.simTimeSeconds += 1.0;
|
| 660 |
+
stepSimulationPhysics(1.0);
|
| 661 |
+
});
|
| 662 |
+
|
| 663 |
+
document.getElementById('btn-anomaly').addEventListener('click', () => {
|
| 664 |
+
state.anomalyInjected = true;
|
| 665 |
+
state.anomalyTimer = 5.0;
|
| 666 |
+
state.bots[3].status = 'ANOMALY (DROPPED)';
|
| 667 |
+
state.bots[3].link = false;
|
| 668 |
+
renderModeControls();
|
| 669 |
+
renderBotMatrix();
|
| 670 |
+
});
|
| 671 |
+
|
| 672 |
+
document.querySelectorAll('.sim-speed-btn').forEach(btn => {
|
| 673 |
+
btn.addEventListener('click', (e) => {
|
| 674 |
+
state.simSpeed = parseFloat(e.currentTarget.getAttribute('data-speed'));
|
| 675 |
+
document.querySelectorAll('.sim-speed-btn').forEach(b => {
|
| 676 |
+
b.className = 'sim-speed-btn px-1.5 py-0.5 rounded border border-outline-variant bg-surface';
|
| 677 |
+
});
|
| 678 |
+
e.currentTarget.className = 'sim-speed-btn px-1.5 py-0.5 rounded border border-blue-600 bg-blue-600 text-white';
|
| 679 |
+
});
|
| 680 |
+
});
|
| 681 |
+
|
| 682 |
+
const botMatrixContainer = document.getElementById('bots-matrix-container');
|
| 683 |
+
function renderBotMatrix() {
|
| 684 |
+
let html = '';
|
| 685 |
+
state.bots.forEach((bot, idx) => {
|
| 686 |
+
const isNominal = bot.link && !(state.anomalyInjected && idx === 3);
|
| 687 |
+
const statusClass = isNominal
|
| 688 |
+
? 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border-emerald-500/20'
|
| 689 |
+
: 'bg-rose-500/10 text-rose-600 dark:text-rose-400 border-rose-500/20 animate-pulse';
|
| 690 |
+
|
| 691 |
+
html += `
|
| 692 |
+
<div class="bg-surface border border-outline-variant rounded p-1.5 flex flex-col gap-1 text-[10px] font-mono shadow-sm">
|
| 693 |
+
<div class="flex items-center justify-between">
|
| 694 |
+
<span class="font-bold text-on-surface">${bot.id}</span>
|
| 695 |
+
<span class="w-1.5 h-1.5 rounded-full ${isNominal ? 'bg-emerald-400' : 'bg-rose-500'}"></span>
|
| 696 |
+
</div>
|
| 697 |
+
<div class="flex justify-between text-on-surface-variant">
|
| 698 |
+
<span>RNG:</span>
|
| 699 |
+
<span class="text-on-surface font-medium">${bot.r.toFixed(1)} km</span>
|
| 700 |
+
</div>
|
| 701 |
+
<div class="flex justify-between text-on-surface-variant">
|
| 702 |
+
<span>WCI ω:</span>
|
| 703 |
+
<span class="text-cyan-600 dark:text-cyan-400 font-bold">${bot.omega.toFixed(2)}</span>
|
| 704 |
+
</div>
|
| 705 |
+
<div class="flex justify-between text-on-surface-variant">
|
| 706 |
+
<span>FOR:</span>
|
| 707 |
+
<span class="text-on-surface">${bot.forAngle}°</span>
|
| 708 |
+
</div>
|
| 709 |
+
<div class="pt-0.5 border-t border-outline-variant text-[9px] text-center font-bold px-1 rounded ${statusClass} truncate">
|
| 710 |
+
${isNominal ? 'HDBC-SYNC' : 'OUTLIER REJ'}
|
| 711 |
+
</div>
|
| 712 |
+
</div>`;
|
| 713 |
+
});
|
| 714 |
+
botMatrixContainer.innerHTML = html;
|
| 715 |
+
}
|
| 716 |
+
|
| 717 |
+
function updateKPIs() {
|
| 718 |
+
const k1L = document.getElementById('kpi-1-label');
|
| 719 |
+
const k1V = document.getElementById('kpi-1-val');
|
| 720 |
+
const k2L = document.getElementById('kpi-2-label');
|
| 721 |
+
const k2V = document.getElementById('kpi-2-val');
|
| 722 |
+
const k3L = document.getElementById('kpi-3-label');
|
| 723 |
+
const k3V = document.getElementById('kpi-3-val');
|
| 724 |
+
const k4L = document.getElementById('kpi-4-label');
|
| 725 |
+
const k4V = document.getElementById('kpi-4-val');
|
| 726 |
+
|
| 727 |
+
if (state.currentMode === 1) {
|
| 728 |
+
k1L.textContent = 'ACCEL SENSITIVITY';
|
| 729 |
+
k1V.textContent = state.m1_counterRotatingMirror
|
| 730 |
+
? (state.m1_duration2T === 5 ? '5.00e-10 m/s²/√Hz' : state.m1_duration2T === 10 ? '1.00e-11 m/s²/√Hz' : '1.00e-12 m/s²/√Hz')
|
| 731 |
+
: '1.00e-08 m/s²/√Hz';
|
| 732 |
+
k2L.textContent = 'GGT TRACE Tr(V)';
|
| 733 |
+
k2V.textContent = '0.00 E (LAPLACE)';
|
| 734 |
+
k3L.textContent = 'COLD GYRO Ω';
|
| 735 |
+
k3V.textContent = '-1142 ±29 µrad/s';
|
| 736 |
+
k4L.textContent = 'ORBIT RADIAL ERR';
|
| 737 |
+
k4V.textContent = '42.1 m (<100m)';
|
| 738 |
+
} else if (state.currentMode === 2) {
|
| 739 |
+
k1L.textContent = 'DSAC 40.5 GHz STAB';
|
| 740 |
+
k1V.textContent = (1.5e-13 / Math.sqrt(state.m2_tau)).toExponential(2);
|
| 741 |
+
k2L.textContent = 'LONG-TERM DRIFT';
|
| 742 |
+
k2V.textContent = '3.00e-15 / day';
|
| 743 |
+
k3L.textContent = 'SCHWARZSCHILD QFI';
|
| 744 |
+
k3V.textContent = '1.48e+18 rad⁻²';
|
| 745 |
+
k4L.textContent = 'OWLT LIGHT DELAY';
|
| 746 |
+
k4V.textContent = ((state.m2_distanceAU * 149.6e6) / 299792).toFixed(1) + ' s';
|
| 747 |
+
} else if (state.currentMode === 3) {
|
| 748 |
+
k1L.textContent = 'DROP PROB p_ld';
|
| 749 |
+
k1V.textContent = state.m3_pld.toFixed(2);
|
| 750 |
+
k2L.textContent = 'FUSED COV Tr(P)';
|
| 751 |
+
k2V.textContent = (0.14 / state.m3_omega + 0.08 / (1 - state.m3_omega)).toFixed(3) + ' m²';
|
| 752 |
+
k3L.textContent = 'WCI WEIGHT ω';
|
| 753 |
+
k3V.textContent = state.m3_omega.toFixed(2) + ' (OPTIMAL)';
|
| 754 |
+
k4L.textContent = 'DP SCHEDULER';
|
| 755 |
+
k4V.textContent = '8,341 pkts/<1min';
|
| 756 |
+
} else if (state.currentMode === 4) {
|
| 757 |
+
k1L.textContent = 'SELECTED PLANNER';
|
| 758 |
+
k1V.textContent = state.m4_algorithm;
|
| 759 |
+
k2L.textContent = 'PATH METRIC';
|
| 760 |
+
k2V.textContent = state.m4_algorithm === 'QUAV-QAOA' ? '1104.11 m' : state.m4_algorithm === 'RRT' ? '1561.99 m' : state.m4_algorithm === 'A*' ? '380.00 m' : 'O(pN²) ω=0.61';
|
| 761 |
+
k3L.textContent = 'SAFETY BUFFER';
|
| 762 |
+
k3V.textContent = state.m4_safetyBuffer.toFixed(1) + 'x (sx, sy)';
|
| 763 |
+
k4L.textContent = 'DARBO REGION SW';
|
| 764 |
+
k4V.textContent = 'κ_s=4 (β=0.2)';
|
| 765 |
+
} else if (state.currentMode === 5) {
|
| 766 |
+
k1L.textContent = 'PQC PARAMS';
|
| 767 |
+
k1V.textContent = '4.29x < DQN (3.77x AC)';
|
| 768 |
+
k2L.textContent = 'GRADIENT METHOD';
|
| 769 |
+
k2V.textContent = 'Sym-Diff Quotient';
|
| 770 |
+
k3L.textContent = 'RECOVERY RATE';
|
| 771 |
+
k3V.textContent = Math.abs(state.m5_yaw) < 0.05 ? 'LOCKED (<0.01°)' : 'STABILIZING...';
|
| 772 |
+
k4L.textContent = 'MASS: M / BOTS';
|
| 773 |
+
k4V.textContent = '210 kg / 6x 5kg';
|
| 774 |
+
} else if (state.currentMode === 6) {
|
| 775 |
+
k1L.textContent = 'ALICE PULSE RATE';
|
| 776 |
+
k1V.textContent = '100 MHz (WEAK)';
|
| 777 |
+
k2L.textContent = 'KEY YIELD / PASS';
|
| 778 |
+
k2V.textContent = (1.99 * Math.sin(state.m6_elevation * Math.PI / 180)).toFixed(2) + ' Mbits';
|
| 779 |
+
k3L.textContent = 'DAILY CONTACT';
|
| 780 |
+
k3V.textContent = '2,010 s / day';
|
| 781 |
+
k4L.textContent = 'CCSDS DTN TIER';
|
| 782 |
+
k4V.textContent = '>10 Mbps Optical';
|
| 783 |
+
}
|
| 784 |
+
}
|
| 785 |
+
|
| 786 |
+
function stepSimulationPhysics(dt) {
|
| 787 |
+
if (state.anomalyInjected) {
|
| 788 |
+
state.anomalyTimer -= dt;
|
| 789 |
+
if (state.anomalyTimer <= 0) {
|
| 790 |
+
state.anomalyInjected = false;
|
| 791 |
+
state.bots[3].status = 'TRACKING';
|
| 792 |
+
state.bots[3].link = true;
|
| 793 |
+
renderModeControls();
|
| 794 |
+
renderBotMatrix();
|
| 795 |
+
}
|
| 796 |
+
}
|
| 797 |
+
if (state.m5_attitudeDisturbance > 0.001) {
|
| 798 |
+
state.m5_attitudeDisturbance *= 0.94;
|
| 799 |
+
state.m5_yaw = state.m5_attitudeDisturbance;
|
| 800 |
+
state.m5_roll = Math.sin(state.simTimeSeconds * 2) * 0.05 * state.m5_attitudeDisturbance;
|
| 801 |
+
state.m5_pitch = Math.cos(state.simTimeSeconds * 2) * 0.03 * state.m5_attitudeDisturbance;
|
| 802 |
+
} else {
|
| 803 |
+
state.m5_roll = 0.01;
|
| 804 |
+
state.m5_pitch = -0.01;
|
| 805 |
+
state.m5_yaw = 0.00;
|
| 806 |
+
}
|
| 807 |
+
if (Math.random() < 0.04) {
|
| 808 |
+
state.bots.forEach((b, i) => {
|
| 809 |
+
if (state.anomalyInjected && i === 3) return;
|
| 810 |
+
b.link = Math.random() > state.m3_pld;
|
| 811 |
+
});
|
| 812 |
+
renderBotMatrix();
|
| 813 |
+
}
|
| 814 |
+
state.obstacles.forEach(obs => {
|
| 815 |
+
obs.x -= 0.25 * state.simSpeed;
|
| 816 |
+
if (obs.x < -200) obs.x = 240;
|
| 817 |
+
});
|
| 818 |
+
}
|
| 819 |
+
|
| 820 |
+
let lastTimestamp = 0;
|
| 821 |
+
let frameCount = 0;
|
| 822 |
+
let fpsTimer = 0;
|
| 823 |
+
|
| 824 |
+
function drawSimulation(timestamp) {
|
| 825 |
+
if (!lastTimestamp) lastTimestamp = timestamp;
|
| 826 |
+
const delta = (timestamp - lastTimestamp) / 1000;
|
| 827 |
+
lastTimestamp = timestamp;
|
| 828 |
+
|
| 829 |
+
if (state.simRunning) {
|
| 830 |
+
const dt = delta * state.simSpeed;
|
| 831 |
+
state.simTimeSeconds += dt;
|
| 832 |
+
stepSimulationPhysics(dt);
|
| 833 |
+
}
|
| 834 |
+
|
| 835 |
+
frameCount++;
|
| 836 |
+
fpsTimer += delta;
|
| 837 |
+
if (fpsTimer >= 1.0) {
|
| 838 |
+
document.getElementById('sim-fps').textContent = `${frameCount} FPS`;
|
| 839 |
+
frameCount = 0;
|
| 840 |
+
fpsTimer = 0;
|
| 841 |
+
}
|
| 842 |
+
|
| 843 |
+
const mins = Math.floor(state.simTimeSeconds / 60);
|
| 844 |
+
const secs = Math.floor(state.simTimeSeconds % 60);
|
| 845 |
+
document.getElementById('sim-clock').textContent = `T+00:${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
|
| 846 |
+
|
| 847 |
+
const w = spaceCanvas.width / (window.devicePixelRatio || 1);
|
| 848 |
+
const h = spaceCanvas.height / (window.devicePixelRatio || 1);
|
| 849 |
+
const cx = w * 0.44;
|
| 850 |
+
const cy = h * 0.52;
|
| 851 |
+
|
| 852 |
+
sCtx.fillStyle = '#060A17';
|
| 853 |
+
sCtx.fillRect(0, 0, w, h);
|
| 854 |
+
|
| 855 |
+
sCtx.save();
|
| 856 |
+
sCtx.strokeStyle = 'rgba(30, 41, 59, 0.45)';
|
| 857 |
+
sCtx.lineWidth = 1;
|
| 858 |
+
for (let r = 50; r <= 180; r += 45) {
|
| 859 |
+
sCtx.beginPath();
|
| 860 |
+
sCtx.arc(cx, cy, r, 0, Math.PI * 2);
|
| 861 |
+
sCtx.stroke();
|
| 862 |
+
}
|
| 863 |
+
sCtx.beginPath();
|
| 864 |
+
sCtx.moveTo(cx - 200, cy);
|
| 865 |
+
sCtx.lineTo(cx + 200, cy);
|
| 866 |
+
sCtx.moveTo(cx, cy - 140);
|
| 867 |
+
sCtx.lineTo(cx, cy + 140);
|
| 868 |
+
sCtx.stroke();
|
| 869 |
+
sCtx.restore();
|
| 870 |
+
|
| 871 |
+
if (state.currentMode === 1) {
|
| 872 |
+
sCtx.save();
|
| 873 |
+
sCtx.strokeStyle = 'rgba(18, 181, 203, 0.15)';
|
| 874 |
+
sCtx.lineWidth = 1.5;
|
| 875 |
+
sCtx.setLineDash([4, 6]);
|
| 876 |
+
for (let i = 1; i <= 3; i++) {
|
| 877 |
+
sCtx.beginPath();
|
| 878 |
+
sCtx.ellipse(cx, cy, i * 65, i * 42, 0.35, 0, Math.PI * 2);
|
| 879 |
+
sCtx.stroke();
|
| 880 |
+
}
|
| 881 |
+
sCtx.restore();
|
| 882 |
+
} else if (state.currentMode === 4) {
|
| 883 |
+
state.obstacles.forEach(obs => {
|
| 884 |
+
const ox = cx + obs.x;
|
| 885 |
+
const oy = cy + obs.y;
|
| 886 |
+
const bufRadius = obs.size * state.m4_safetyBuffer;
|
| 887 |
+
sCtx.save();
|
| 888 |
+
sCtx.fillStyle = 'rgba(250, 144, 62, 0.12)';
|
| 889 |
+
sCtx.strokeStyle = 'rgba(250, 144, 62, 0.7)';
|
| 890 |
+
sCtx.setLineDash([3, 3]);
|
| 891 |
+
sCtx.beginPath();
|
| 892 |
+
sCtx.arc(ox, oy, bufRadius, 0, Math.PI * 2);
|
| 893 |
+
sCtx.fill();
|
| 894 |
+
sCtx.stroke();
|
| 895 |
+
sCtx.restore();
|
| 896 |
+
|
| 897 |
+
sCtx.fillStyle = '#FA903E';
|
| 898 |
+
sCtx.beginPath();
|
| 899 |
+
sCtx.arc(ox, oy, obs.size * 0.4, 0, Math.PI * 2);
|
| 900 |
+
sCtx.fill();
|
| 901 |
+
});
|
| 902 |
+
|
| 903 |
+
sCtx.save();
|
| 904 |
+
sCtx.strokeStyle = state.m4_algorithm === 'QUAV-QAOA' ? '#C58AF9' : state.m4_algorithm === 'A*' ? '#81C995' : '#FA903E';
|
| 905 |
+
sCtx.lineWidth = 2.5;
|
| 906 |
+
sCtx.beginPath();
|
| 907 |
+
sCtx.moveTo(cx - 160, cy + 50);
|
| 908 |
+
sCtx.bezierCurveTo(cx - 60, cy - 70, cx + 50, cy + 90, cx + 180, cy - 20);
|
| 909 |
+
sCtx.stroke();
|
| 910 |
+
sCtx.restore();
|
| 911 |
+
}
|
| 912 |
+
|
| 913 |
+
const t = state.simTimeSeconds;
|
| 914 |
+
state.bots.forEach((bot, i) => {
|
| 915 |
+
let bx, by;
|
| 916 |
+
if (state.formation === 'trailing') {
|
| 917 |
+
const dist = (i + 1) * 28;
|
| 918 |
+
bx = cx - dist;
|
| 919 |
+
by = cy + Math.sin(t * 1.5 + i * 0.9) * 14;
|
| 920 |
+
} else if (state.formation === 'cluster') {
|
| 921 |
+
const angle = (i / 6) * Math.PI * 2 + t * 0.4;
|
| 922 |
+
const a = 90 + (i % 2) * 25;
|
| 923 |
+
const b = 50 + (i % 2) * 15;
|
| 924 |
+
bx = cx + Math.cos(angle) * a;
|
| 925 |
+
by = cy + Math.sin(angle) * b;
|
| 926 |
+
} else {
|
| 927 |
+
const angle = (i / 6) * Math.PI * 2 + t * 0.15;
|
| 928 |
+
bx = cx + Math.cos(angle) * 125;
|
| 929 |
+
by = cy + Math.sin(angle) * 125;
|
| 930 |
+
}
|
| 931 |
+
bot.x = bx;
|
| 932 |
+
bot.y = by;
|
| 933 |
+
bot.r = Math.sqrt((bx - cx) ** 2 + (by - cy) ** 2) * 0.35;
|
| 934 |
+
|
| 935 |
+
const isDropped = !bot.link || (state.anomalyInjected && i === 3);
|
| 936 |
+
|
| 937 |
+
sCtx.save();
|
| 938 |
+
const sweepAngle = Math.atan2(by - cy, bx - cx) + Math.sin(t * 2 + i) * 0.2;
|
| 939 |
+
const halfFor = (bot.forAngle / 2) * (Math.PI / 180);
|
| 940 |
+
sCtx.beginPath();
|
| 941 |
+
sCtx.moveTo(bx, by);
|
| 942 |
+
sCtx.arc(bx, by, 35, sweepAngle - halfFor, sweepAngle + halfFor);
|
| 943 |
+
sCtx.closePath();
|
| 944 |
+
sCtx.fillStyle = isDropped ? 'rgba(217, 48, 37, 0.08)' : 'rgba(18, 181, 203, 0.08)';
|
| 945 |
+
sCtx.fill();
|
| 946 |
+
sCtx.restore();
|
| 947 |
+
|
| 948 |
+
sCtx.save();
|
| 949 |
+
sCtx.beginPath();
|
| 950 |
+
sCtx.moveTo(cx, cy);
|
| 951 |
+
sCtx.lineTo(bx, by);
|
| 952 |
+
sCtx.strokeStyle = isDropped ? 'rgba(217, 48, 37, 0.4)' : 'rgba(129, 201, 149, 0.7)';
|
| 953 |
+
sCtx.lineWidth = isDropped ? 1 : 1.4;
|
| 954 |
+
if (isDropped) sCtx.setLineDash([4, 4]);
|
| 955 |
+
sCtx.stroke();
|
| 956 |
+
sCtx.restore();
|
| 957 |
+
|
| 958 |
+
sCtx.save();
|
| 959 |
+
sCtx.translate(bx, by);
|
| 960 |
+
sCtx.fillStyle = isDropped ? '#D93025' : '#81C995';
|
| 961 |
+
sCtx.fillRect(-4, -4, 8, 8);
|
| 962 |
+
sCtx.fillStyle = '#1A73E8';
|
| 963 |
+
sCtx.fillRect(-10, -2, 5, 4);
|
| 964 |
+
sCtx.fillRect(5, -2, 5, 4);
|
| 965 |
+
sCtx.font = '8px "JetBrains Mono"';
|
| 966 |
+
sCtx.fillStyle = 'rgba(255, 255, 255, 0.75)';
|
| 967 |
+
sCtx.fillText(bot.id, -12, 14);
|
| 968 |
+
sCtx.restore();
|
| 969 |
+
});
|
| 970 |
+
|
| 971 |
+
sCtx.save();
|
| 972 |
+
sCtx.translate(cx, cy);
|
| 973 |
+
sCtx.rotate((state.m5_yaw * Math.PI) / 180);
|
| 974 |
+
sCtx.fillStyle = '#1A73E8';
|
| 975 |
+
sCtx.beginPath();
|
| 976 |
+
for (let a = 0; a < 6; a++) {
|
| 977 |
+
const angle = (a / 6) * Math.PI * 2;
|
| 978 |
+
const px = Math.cos(angle) * 11;
|
| 979 |
+
const py = Math.sin(angle) * 11;
|
| 980 |
+
if (a === 0) sCtx.moveTo(px, py);
|
| 981 |
+
else sCtx.lineTo(px, py);
|
| 982 |
+
}
|
| 983 |
+
sCtx.closePath();
|
| 984 |
+
sCtx.fill();
|
| 985 |
+
|
| 986 |
+
sCtx.fillStyle = state.m1_counterRotatingMirror ? '#12B5CB' : '#FA903E';
|
| 987 |
+
sCtx.beginPath();
|
| 988 |
+
sCtx.arc(0, 0, 4.5, 0, Math.PI * 2);
|
| 989 |
+
sCtx.fill();
|
| 990 |
+
|
| 991 |
+
sCtx.fillStyle = '#0F2B5C';
|
| 992 |
+
sCtx.strokeStyle = '#5B8DEF';
|
| 993 |
+
sCtx.lineWidth = 1;
|
| 994 |
+
sCtx.strokeRect(-28, -6, 16, 12);
|
| 995 |
+
sCtx.fillRect(-28, -6, 16, 12);
|
| 996 |
+
sCtx.strokeRect(12, -6, 16, 12);
|
| 997 |
+
sCtx.fillRect(12, -6, 16, 12);
|
| 998 |
+
sCtx.restore();
|
| 999 |
+
|
| 1000 |
+
drawQuantumFringes();
|
| 1001 |
+
requestAnimationFrame(drawSimulation);
|
| 1002 |
+
}
|
| 1003 |
+
|
| 1004 |
+
function drawQuantumFringes() {
|
| 1005 |
+
const fw = fringeCanvas.width;
|
| 1006 |
+
const fh = fringeCanvas.height;
|
| 1007 |
+
fCtx.fillStyle = '#050811';
|
| 1008 |
+
fCtx.fillRect(0, 0, fw, fh);
|
| 1009 |
+
|
| 1010 |
+
const contrast = state.m1_counterRotatingMirror ? (state.m1_duration2T === 5 ? 0.88 : state.m1_duration2T === 10 ? 0.76 : 0.62) : 0.18;
|
| 1011 |
+
const contrastEl = document.getElementById('fringe-contrast-val');
|
| 1012 |
+
contrastEl.textContent = `C: ${(contrast * 100).toFixed(0)}%`;
|
| 1013 |
+
contrastEl.className = contrast > 0.5 ? 'text-emerald-400 font-bold' : 'text-rose-500 font-bold';
|
| 1014 |
+
|
| 1015 |
+
fCtx.strokeStyle = state.m1_counterRotatingMirror ? '#12B5CB' : '#D93025';
|
| 1016 |
+
fCtx.lineWidth = 1.5;
|
| 1017 |
+
fCtx.beginPath();
|
| 1018 |
+
for (let x = 0; x < fw; x++) {
|
| 1019 |
+
const phase = (x * 0.15) + (state.simTimeSeconds * 3);
|
| 1020 |
+
const noise = (Math.random() - 0.5) * (1 - contrast) * 14;
|
| 1021 |
+
const y = (fh / 2) + Math.cos(phase) * (fh * 0.38 * contrast) + noise;
|
| 1022 |
+
if (x === 0) fCtx.moveTo(x, y);
|
| 1023 |
+
else fCtx.lineTo(x, y);
|
| 1024 |
+
}
|
| 1025 |
+
fCtx.stroke();
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
renderModeControls();
|
| 1029 |
+
renderBotMatrix();
|
| 1030 |
+
requestAnimationFrame(drawSimulation);
|
| 1031 |
+
});
|
| 1032 |
+
</script>
|
| 1033 |
+
</body>
|
| 1034 |
+
</html>
|