-
-
-
Wartung
-
Maintenance
-
-
-
-
Motorentest
-
Separate Testseite für Lenkung und Antrieb je Rad.
+
+
+
+
+
+
+
Aktionen
+
System Control
+
+
+
+
+
+
+
+
+
+
+
+ Kamera
+ -
+
+
+
+ Admin API
+ -
+
+
+
+ ExoMy
+ -
+
+
-
-
Öffnen
+
+
+
+
+
+
Latenz-Simulation
+
Signal Delay
+
+
+
+
+
+
+
+
+
+
+
+
Geschwindigkeit
+
Speed Limit
+
+
+
+
+
+
+
+
+
+
+
+
Systemstatus
+
Telemetry
+
+
+
+
+ WLAN
+ -
+
+
+
+ IP
+ -
+
+
+
+
+
+ Spannung
+ -
+
+
+
+ Uptime
+ -
+
+
+
+ Disk frei
+ -
+
+
-
+
-
-
-
-
Latenz-Simulation
-
Signal Delay
-
-
-
-
-
-
-
+
+
+
+
+
+
+
Testmodus
+
Container Control
+
+
+ Stoppe zuerst den ExoMy-Container. Erst wenn der Status eindeutig auf gestoppt steht, solltest du Motoren testen oder die Servo-Mitten ausrichten.
+
+
+
+ Container
+ exomy_autostart
+
+
+
+ Status
+ -
+
+
+
+ Sicher testen
+ -
+
+
+
+
+
+
+
-
-
-
-
Geschwindigkeit
-
Speed Limit
-
-
-
-
-
-
-
+
+
+
+
+
Motorentest
+
Motor Diagnostics
+
-
-
-
-
Systemstatus
-
Telemetry
-
-
-
-
- WLAN
- -
-
-
-
- IP
- -
-
-
-
-
-
- Spannung
- -
-
-
-
- Uptime
- -
-
-
-
- Disk frei
- -
-
-
+
+
+
+
+
-
+
+
+
+
+
+
Impulstest
+
+
+
+
+
+
+
+
+
+
+
+
+ Mit - und + wird die aktuelle Mittelstellung direkt am jeweiligen Lenkservo angefahren. Speichern schreibt alle Werte dauerhaft in die exomy.yaml.
+
+
+
+
+
+
+
+
+
+
+ Mit - und + stellst du den Stillstands-PWM pro Fahrmotor ein. Speichern schreibt alle sechs Werte dauerhaft in die exomy.yaml.
+
+
+
+
+
+
+
+
+
+
+
+
@@ -195,6 +285,24 @@
-
diff --git a/ExoMy_Software-master/gui/app.css b/ExoMy_Software-master/gui/app.css
new file mode 100644
index 0000000..fd5d1d1
--- /dev/null
+++ b/ExoMy_Software-master/gui/app.css
@@ -0,0 +1,1250 @@
+:root {
+ --bg: #05080F;
+ --pri: #0088FF;
+ --sec: #FF8C00;
+ --ok: #00ff91;
+ --warn: #FFB300;
+ --txt: rgba(180,255,225,.96);
+ --txt2: rgba(160,255,215,.72);
+ --panel: #070D18;
+ --border: rgba(120,255,205,.28);
+ --mono: "Consolas", "Cascadia Code", "Cascadia Mono", "Courier New", monospace;
+ --disp: "Consolas", "Cascadia Code", "Cascadia Mono", "Courier New", monospace;
+}
+
+* { margin: 0; padding: 0; box-sizing: border-box; }
+html, body { height: 100%; overflow: hidden; }
+
+body {
+ font-family: var(--mono);
+ background-color: var(--bg);
+ background-image:
+ linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px);
+ background-size: 32px 32px;
+ color: var(--txt);
+ display: flex;
+ flex-direction: column;
+}
+
+header {
+ height: 52px;
+ background: linear-gradient(135deg, #060D1A 0%, #0C1C38 100%);
+ border-bottom: 2px solid var(--pri);
+ box-shadow: 0 2px 24px rgba(0,136,255,.28);
+ display: flex;
+ align-items: center;
+ padding: 0 16px;
+ gap: 14px;
+ flex-shrink: 0;
+ z-index: 100;
+}
+
+.hdr-icon { width: 32px; height: 32px; flex-shrink: 0; }
+.hdr-title {
+ font-family: var(--disp);
+ font-weight: 700;
+ font-size: 14px;
+ color: #fff;
+ letter-spacing: 5px;
+ text-transform: uppercase;
+ white-space: nowrap;
+}
+.hdr-title em { font-style: normal; color: var(--pri); }
+.hdr-div { width: 1px; height: 28px; background: rgba(255,255,255,.12); flex-shrink: 0; }
+.hdr-badge {
+ font-size: 7px;
+ color: var(--pri);
+ border: 1px solid rgba(0,136,255,.5);
+ padding: 2px 8px;
+ letter-spacing: 2.5px;
+ text-transform: uppercase;
+ white-space: nowrap;
+}
+.hdr-gap { flex: 1; }
+.mission-ok {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 8px;
+ color: var(--ok);
+ letter-spacing: 2px;
+ text-transform: uppercase;
+}
+.pulse-dot {
+ width: 7px;
+ height: 7px;
+ border-radius: 50%;
+ background: var(--ok);
+ animation: pdot 2s ease-in-out infinite;
+ box-shadow: 0 0 0 0 rgba(0,200,83,.5);
+}
+@keyframes pdot {
+ 0% { box-shadow: 0 0 0 0 rgba(0,200,83,.5); }
+ 70% { box-shadow: 0 0 0 7px rgba(0,200,83,0); }
+ 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); }
+}
+
+.hdr-clocks { display: flex; gap: 16px; }
+.hdr-clk { display: flex; flex-direction: column; align-items: flex-end; }
+.hdr-clk-lbl {
+ font-size: 7px;
+ color: rgba(255,255,255,.72);
+ letter-spacing: 2px;
+ text-transform: uppercase;
+}
+.hdr-clk-val {
+ font-family: var(--disp);
+ font-weight: 700;
+ font-size: 14px;
+ color: #fff;
+ letter-spacing: 3px;
+ line-height: 1.1;
+}
+.hdr-clk-val.ora { color: var(--sec); }
+
+.panel {
+ position: relative;
+ background:
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0 / 14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0 / 1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0 / 14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0 / 1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100% / 14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100% / 1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100% / 14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100% / 1px 14px no-repeat,
+ #070D18;
+ border: 1px solid rgba(0,255,145,.1);
+ box-shadow: 0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018);
+}
+
+.p-hdr {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ padding: 7px 12px;
+ border-bottom: 1px solid rgba(0,255,145,.08);
+ background: linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%);
+}
+.p-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); flex-shrink: 0; }
+.p-lbl { font-size: 8px; letter-spacing: 3px; color: rgba(195,255,230,.94); text-transform: uppercase; font-weight: bold; }
+.p-tag { margin-left: auto; font-size: 7px; color: rgba(170,255,220,.68); letter-spacing: 1px; }
+.stat-panel-toggle {
+ cursor: pointer;
+ user-select: none;
+}
+.stat-panel-toggle:hover {
+ background: linear-gradient(90deg, rgba(0,255,145,.09) 0%, transparent 100%);
+}
+.stat-panel-toggle:focus-visible {
+ outline: 1px solid rgba(0,255,145,.45);
+ outline-offset: -1px;
+}
+.stat-toggle-indicator {
+ margin-left: 8px;
+ font-size: 12px;
+ color: rgba(200,255,230,.82);
+ line-height: 1;
+ transition: transform .9s cubic-bezier(.22,.61,.36,1), color .3s ease;
+}
+.stat-list {
+ height: auto;
+ opacity: 1;
+ overflow: hidden;
+ transform: translateY(0);
+ transition:
+ height 1s cubic-bezier(.22,.61,.36,1),
+ opacity .7s ease,
+ transform .7s ease;
+}
+#stat-panel.collapsed .stat-list {
+ opacity: 0;
+ transform: translateY(-8px);
+}
+#stat-panel:not(.collapsed) .stat-toggle-indicator {
+ transform: rotate(90deg);
+}
+
+.main {
+ flex: 1;
+ display: grid;
+ grid-template-columns: 1fr clamp(230px, 28vw, 330px);
+ gap: clamp(6px, 1vw, 12px);
+ padding: clamp(6px, 1vw, 12px);
+ min-height: 0;
+ overflow: hidden;
+}
+
+.col-l, .col-r {
+ display: flex;
+ flex-direction: column;
+ gap: clamp(6px, 1vw, 12px);
+ min-height: 0;
+}
+
+#stat-panel { flex-shrink: 0; }
+
+.drive-btns { display: flex; gap: 8px; padding: 10px 12px; }
+.dbtn {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 12px 6px;
+ border: 1px solid rgba(0,255,145,.18);
+ background: rgba(0,255,145,.03);
+ color: rgba(170,255,220,.82);
+ font-family: var(--mono);
+ font-size: 11px;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+ cursor: pointer;
+ transition: all .18s ease;
+}
+.dbtn:hover {
+ border-color: rgba(0,255,145,.5);
+ color: rgba(0,255,145,.8);
+ background: rgba(0,255,145,.07);
+}
+.dbtn.active {
+ border-color: rgba(0,255,145,.7);
+ background: rgba(0,255,145,.1);
+ color: #00ff91;
+ box-shadow: 0 0 20px rgba(0,255,145,.25), inset 0 0 14px rgba(0,255,145,.06);
+}
+@keyframes mode-flash {
+ 0% { box-shadow: 0 0 0px rgba(0,255,145,0), background-color: var(--pri); }
+ 30% { box-shadow: 0 0 28px rgba(0,255,145,.9), background-color: #00ff91; }
+ 100% { box-shadow: 0 0 24px rgba(0,136,255,.45), background-color: var(--pri); }
+}
+.dbtn.flash { animation: mode-flash .5s ease-out forwards; }
+
+#cam-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
+.cam-port {
+ flex: 1;
+ position: relative;
+ overflow: hidden;
+ background: #0C0E14;
+ min-height: 0;
+}
+.cam-frame {
+ --cam-scale: 1;
+ position: absolute;
+ left: 0;
+ top: 0;
+ overflow: hidden;
+ background: #05070d;
+ z-index: 1;
+}
+#video_output {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+ object-position: center;
+ background: #05070d;
+ z-index: 1;
+}
+.c-vignette {
+ position: absolute;
+ inset: 0;
+ pointer-events: none;
+ z-index: 6;
+ background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.58) 100%);
+}
+.c-xhair {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ width: calc(180px * var(--cam-scale));
+ height: calc(180px * var(--cam-scale));
+ z-index: 10;
+ pointer-events: none;
+}
+@keyframes xh-spin { to { transform: rotate(360deg); } }
+@keyframes xh-pulse {
+ 0% { transform: scale(1); opacity: .7; }
+ 100% { transform: scale(2.8); opacity: 0; }
+}
+.xh-rot { animation: xh-spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
+.xh-rot-rev { animation: xh-spin 8s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
+.xh-pulse { animation: xh-pulse 2.5s ease-out infinite; transform-box: fill-box; transform-origin: center; }
+.c-rec {
+ position: absolute;
+ top: calc(13px * var(--cam-scale));
+ left: 50%;
+ transform: translateX(-50%);
+ display: flex;
+ align-items: center;
+ gap: calc(5px * var(--cam-scale));
+ font-size: calc(8px * var(--cam-scale));
+ color: rgba(255,55,55,.9);
+ letter-spacing: calc(2px * var(--cam-scale));
+ z-index: 10;
+}
+.c-rec-dot {
+ width: calc(6px * var(--cam-scale));
+ height: calc(6px * var(--cam-scale));
+ border-radius: 50%;
+ background: #FF3333;
+ animation: blink 1.1s step-end infinite;
+}
+@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
+.c-tl, .c-tr, .c-bl, .c-br {
+ position: absolute;
+ z-index: 10;
+ font-size: calc(9px * var(--cam-scale));
+ color: rgba(0,255,145,.72);
+ letter-spacing: calc(1px * var(--cam-scale));
+ line-height: 1.9;
+ pointer-events: none;
+}
+.c-tl { top: calc(13px * var(--cam-scale)); left: calc(13px * var(--cam-scale)); }
+.c-tr { top: calc(13px * var(--cam-scale)); right: calc(13px * var(--cam-scale)); text-align: right; }
+.c-bl { bottom: calc(13px * var(--cam-scale)); left: calc(13px * var(--cam-scale)); }
+.c-br { bottom: calc(13px * var(--cam-scale)); right: calc(13px * var(--cam-scale)); text-align: right; }
+
+/* ── STAT PANEL ─────────────────────────────────────── */
+.stat-list {
+ display: flex;
+ flex-direction: column;
+ background: #040810;
+ position: relative;
+ overflow: hidden;
+}
+.stat-list::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,255,145,.012) 3px, rgba(0,255,145,.012) 4px);
+ pointer-events: none;
+ z-index: 0;
+}
+.ss-hdr {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ padding: 5px 10px 4px;
+ background: rgba(0,255,145,.035);
+ border-top: 1px solid rgba(0,255,145,.1);
+ border-bottom: 1px solid rgba(0,255,145,.05);
+ position: relative;
+ z-index: 1;
+}
+.ss-hdr-line {
+ flex: 1;
+ height: 1px;
+ background: repeating-linear-gradient(90deg, rgba(0,255,145,.22) 0, rgba(0,255,145,.22) 3px, transparent 3px, transparent 6px);
+}
+.ss-hdr-txt {
+ font-size: 6px;
+ letter-spacing: 4px;
+ color: rgba(180,255,225,.84);
+ text-transform: uppercase;
+}
+.sr {
+ display: flex;
+ align-items: center;
+ padding: 4px 10px;
+ gap: 7px;
+ border-bottom: 1px solid rgba(0,255,145,.04);
+ position: relative;
+ z-index: 1;
+ transition: background .1s;
+}
+.sr:hover { background: rgba(0,255,145,.02); }
+.sr-led {
+ width: 6px;
+ height: 6px;
+ border-radius: 50%;
+ flex-shrink: 0;
+ border: 1px solid rgba(0,255,145,.15);
+ background: #0a1408;
+}
+.sr-led.led-ok { background: #00ff91; border-color: #00ff91; box-shadow: 0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); }
+.sr-led.led-warn { background: #FF8C00; border-color: #FF8C00; box-shadow: 0 0 5px #FF8C00, 0 0 12px rgba(255,140,0,.5); }
+.sr-led.led-blue { background: #0088FF; border-color: #0088FF; box-shadow: 0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); }
+.sr-led.led-off { background: #0d1208; border-color: rgba(0,255,145,.08); box-shadow: none; }
+.sr-key {
+ font-size: 7px;
+ letter-spacing: 2px;
+ color: rgba(175,255,220,.82);
+ text-transform: uppercase;
+ min-width: 52px;
+ flex-shrink: 0;
+}
+.sr-val {
+ font-size: 9px;
+ font-weight: 700;
+ letter-spacing: .8px;
+ margin-left: auto;
+ color: rgba(0,255,145,.85);
+ text-align: right;
+}
+.sr-val.b { color: #55CCFF; }
+.sr-val.g { color: #00ff91; }
+.sr-val.o { color: #FF8C00; }
+.sr-val.alert { color: #FF3333; animation: uv-blink .9s step-end infinite; }
+.sr-val.warntext { color: #FF8C00; }
+/* legacy compat */
+.sval.g { color: var(--ok); }
+.sval.o { color: var(--sec); }
+.sval.b { color: var(--pri); }
+.sval.alert { color: #D50000; animation: uv-blink .9s step-end infinite; }
+.sval.warntext { color: var(--sec); }
+.sval-conn { display: flex; align-items: center; gap: 5px; color: rgba(0,255,145,.85); font-size: 9px; }
+/* Gauge rows */
+.sr-gauge { padding-bottom: 6px; }
+.gauge {
+ flex: 1;
+ height: 8px;
+ background: rgba(0,255,145,.04);
+ border: 1px solid rgba(0,255,145,.14);
+ position: relative;
+ overflow: hidden;
+}
+.gauge::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(4,8,16,.88) 8px, rgba(4,8,16,.88) 9px);
+ z-index: 2;
+ pointer-events: none;
+}
+.gauge-fill {
+ height: 100%;
+ width: 0%;
+ position: relative;
+ z-index: 1;
+ transition: width .6s cubic-bezier(.25,.46,.45,.94);
+}
+.gauge-cpu .gauge-fill { background: linear-gradient(90deg, rgba(0,160,90,.65), rgba(0,255,145,.9)); box-shadow: 2px 0 14px rgba(0,255,145,.45); }
+.gauge-temp .gauge-fill { background: linear-gradient(90deg, rgba(180,60,0,.7), rgba(255,160,0,.9)); box-shadow: 2px 0 14px rgba(255,140,0,.45); }
+.gauge-mem .gauge-fill { background: linear-gradient(90deg, rgba(0,70,180,.65), rgba(0,160,255,.9)); box-shadow: 2px 0 14px rgba(0,136,255,.45); }
+.gauge-num {
+ font-size: 8px;
+ font-weight: 700;
+ min-width: 36px;
+ text-align: right;
+ letter-spacing: .5px;
+}
+.gauge-cpu .gauge-num { color: rgba(0,255,145,.7); }
+.gauge-temp .gauge-num { color: rgba(255,160,0,.8); }
+.gauge-mem .gauge-num { color: rgba(0,180,255,.8); }
+@keyframes uv-blink {
+ 0%, 100% { opacity: 1; }
+ 50% { opacity: 0.2; }
+}
+
+#joy-panel .p-hdr { padding: 14px 12px; }
+.mode-toggle { display: flex; gap: 2px; margin-left: auto; }
+.mtbtn {
+ font-family: var(--mono);
+ font-size: 8px;
+ letter-spacing: 1.5px;
+ padding: 6px 14px;
+ border: 1px solid rgba(0,255,145,.18);
+ background: transparent;
+ color: rgba(170,255,220,.82);
+ cursor: pointer;
+ transition: all .15s;
+ text-transform: uppercase;
+}
+.mtbtn.active { background: rgba(0,255,145,.1); color: #00ff91; border-color: rgba(0,255,145,.5); box-shadow: 0 0 12px rgba(0,255,145,.2); }
+
+.drive-inline {
+ display: flex;
+ gap: 6px;
+ padding: 8px 12px 0;
+ flex-wrap: wrap;
+}
+.drive-inline .dbtn {
+ flex: 1;
+ min-width: 0;
+ min-height: 34px;
+ padding: 8px 4px;
+ font-size: 9px;
+ letter-spacing: 1px;
+}
+
+#joy-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
+.joy-area,
+.dpad-wrap {
+ flex: 1;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ padding: 12px;
+ min-height: 0;
+ overflow: hidden;
+}
+.joy-area { display: flex; flex-direction: column; }
+.joy-base {
+ width: min(90%, 40vh, 260px);
+ height: min(90%, 40vh, 260px);
+ border-radius: 50%;
+ background:
+ radial-gradient(circle at 50% 50%, rgba(0,255,145,.16) 0%, rgba(0,255,145,.08) 38%, rgba(0,20,12,.92) 72%, rgba(0,0,0,.98) 100%);
+ border: 2px solid rgba(120,255,205,.62);
+ box-shadow:
+ inset 0 0 44px rgba(120,255,205,.14),
+ 0 0 28px rgba(0,255,145,.16),
+ 0 0 0 1px rgba(170,255,220,.08);
+ position: relative;
+ touch-action: none;
+ user-select: none;
+ cursor: grab;
+}
+.joy-base:active { cursor: grabbing; }
+.jg-h, .jg-v {
+ position: absolute;
+ background: linear-gradient(90deg, rgba(0,255,145,0), rgba(170,255,220,.62), rgba(0,255,145,0));
+ box-shadow: 0 0 10px rgba(120,255,205,.18);
+}
+.jg-h { top: 50%; left: 11%; right: 11%; height: 1px; transform: translateY(-50%); }
+.jg-v {
+ left: 50%;
+ top: 11%;
+ bottom: 11%;
+ width: 1px;
+ transform: translateX(-50%);
+ background: linear-gradient(180deg, rgba(0,255,145,0), rgba(170,255,220,.62), rgba(0,255,145,0));
+}
+.jring {
+ position: absolute;
+ border-radius: 50%;
+ border: 1px solid rgba(150,255,215,.28);
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+}
+.jr1 { width: 58px; height: 58px; }
+.jr2 { width: 116px; height: 116px; }
+.joy-thumb {
+ position: absolute;
+ width: 58px;
+ height: 58px;
+ border-radius: 50%;
+ background: radial-gradient(circle at 36% 30%, rgba(245,255,250,.95), rgba(40,255,175,.96) 34%, rgba(0,190,110,.88) 62%, rgba(0,70,42,.96) 100%);
+ border: 2px solid rgba(210,255,235,.85);
+ box-shadow:
+ 0 6px 26px rgba(20,255,165,.42),
+ 0 0 0 5px rgba(120,255,205,.16),
+ inset 0 0 12px rgba(255,255,255,.16);
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ pointer-events: none;
+}
+.joy-thumb::after {
+ content: "";
+ position: absolute;
+ top: 9px;
+ left: 9px;
+ width: 9px;
+ height: 9px;
+ border-radius: 50%;
+ background: rgba(255,255,255,.35);
+}
+
+.dpad-wrap { display: none; flex-direction: column; }
+.dpad-wrap.visible { display: flex; }
+.dpad-grid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ grid-template-rows: repeat(3, 1fr);
+ gap: 5px;
+ width: min(90%, 260px);
+ aspect-ratio: 1;
+}
+.dpad-btn {
+ background:
+ linear-gradient(180deg, rgba(20,70,48,.94), rgba(5,24,18,.98));
+ border: 1px solid rgba(120,255,205,.42);
+ color: rgba(225,255,240,.96);
+ font-size: 15px;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: all .14s ease;
+ touch-action: none;
+ user-select: none;
+ border-radius: 2px;
+ box-shadow:
+ inset 0 0 14px rgba(120,255,205,.08),
+ 0 0 0 1px rgba(170,255,220,.06);
+}
+.dpad-btn:hover {
+ border-color: rgba(170,255,220,.82);
+ color: #ffffff;
+ background: linear-gradient(180deg, rgba(28,110,74,.98), rgba(7,38,26,.98));
+ box-shadow:
+ inset 0 0 18px rgba(170,255,220,.1),
+ 0 0 14px rgba(120,255,205,.16);
+}
+.dpad-btn.pressed {
+ background: linear-gradient(180deg, rgba(45,255,170,.28), rgba(5,85,50,.94));
+ border-color: rgba(220,255,240,.95);
+ color: #ffffff;
+ box-shadow:
+ 0 0 18px rgba(20,255,165,.32),
+ inset 0 0 18px rgba(220,255,240,.14);
+}
+.dpad-mid {
+ background: linear-gradient(180deg, rgba(12,34,24,.92), rgba(3,12,9,.98));
+ border: 1px solid rgba(120,255,205,.18);
+ border-radius: 2px;
+}
+.dpad-diag { font-size: 12px; opacity: .75; }
+.dpad-diag:hover { opacity: 1; }
+.dpad-diag.pressed { opacity: 1; }
+
+.joy-vals { display: flex; gap: 22px; }
+.joy-ax { display: flex; flex-direction: column; align-items: center; gap: 2px; }
+.joy-ax-n { font-size: 7px; letter-spacing: 2px; color: rgba(210,255,235,.92); text-transform: uppercase; }
+.joy-ax-v {
+ font-family: var(--disp);
+ font-weight: 700;
+ font-size: 14px;
+ color: rgba(245,255,250,.98);
+ min-width: 56px;
+ text-align: center;
+ letter-spacing: 2px;
+ text-shadow: 0 0 10px rgba(120,255,205,.16);
+}
+
+.admin-link {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 30px;
+ padding: 0 12px;
+ border: 1px solid rgba(120,255,205,.28);
+ background: linear-gradient(180deg, rgba(10,70,48,.82), rgba(4,22,16,.96));
+ box-shadow: inset 0 0 12px rgba(170,255,220,.06), 0 0 10px rgba(120,255,205,.08);
+ color: rgba(245,255,250,.98);
+ text-decoration: none;
+ font-size: 9px;
+ font-weight: 700;
+ letter-spacing: 1.3px;
+ text-transform: uppercase;
+ transition: all .16s ease;
+}
+.admin-link:hover {
+ color: #ffffff;
+ border-color: rgba(180,255,225,.72);
+ background: linear-gradient(180deg, rgba(18,110,76,.96), rgba(6,36,26,.98));
+ box-shadow: inset 0 0 16px rgba(170,255,220,.1), 0 0 16px rgba(120,255,205,.18);
+}
+
+@media (max-width: 767px), (hover: none) and (pointer: coarse) and (max-width: 767px) {
+ body { overflow-y: auto; }
+ html, body { overflow-x: hidden; }
+ .main {
+ grid-template-columns: 1fr;
+ overflow: visible;
+ }
+ #stat-panel { display: none; }
+ .drive-btns { flex-direction: column; }
+}
+
+@media (max-width: 1366px) and (orientation: landscape), (hover: none) and (pointer: coarse) and (orientation: landscape) {
+ html, body {
+ height: 100%;
+ overflow: hidden;
+ }
+ body {
+ min-height: 100dvh;
+ }
+ header {
+ height: 40px;
+ padding: 0 10px;
+ gap: 8px;
+ }
+ .hdr-icon { width: 24px; height: 24px; }
+ .hdr-title { font-size: 11px; letter-spacing: 3px; }
+ .hdr-badge,
+ .hdr-div {
+ display: none;
+ }
+ .main {
+ grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
+ gap: 8px;
+ padding: 8px;
+ overflow: hidden;
+ }
+ .col-l,
+ .col-r {
+ min-height: 0;
+ overflow: hidden;
+ }
+ #cam-panel,
+ #joy-panel {
+ flex: 1 1 auto;
+ min-height: 0;
+ }
+ .p-hdr,
+ #joy-panel .p-hdr {
+ padding: 6px 10px;
+ }
+ .p-lbl { font-size: 7px; letter-spacing: 2px; }
+ .p-tag { font-size: 6px; }
+ .drive-inline {
+ gap: 4px;
+ padding: 6px 10px 0;
+ }
+ .drive-inline .dbtn {
+ min-height: 30px;
+ font-size: 8px;
+ letter-spacing: .8px;
+ padding: 6px 3px;
+ }
+ .cam-port {
+ min-height: 0;
+ }
+ .joy-area,
+ .dpad-wrap {
+ padding: 8px;
+ gap: 8px;
+ }
+ .joy-base {
+ width: min(90%, 32vh, 220px);
+ height: min(90%, 32vh, 220px);
+ }
+ .jr1 { width: 46px; height: 46px; }
+ .jr2 { width: 92px; height: 92px; }
+ .joy-thumb {
+ width: 44px;
+ height: 44px;
+ }
+ .joy-thumb::after {
+ top: 6px;
+ left: 6px;
+ width: 7px;
+ height: 7px;
+ }
+ .dpad-grid {
+ width: min(90%, 220px);
+ gap: 4px;
+ }
+ .dpad-btn {
+ font-size: 13px;
+ }
+ .dpad-diag {
+ font-size: 11px;
+ }
+ .joy-vals {
+ gap: 14px;
+ }
+ .joy-ax-v {
+ font-size: 12px;
+ min-width: 48px;
+ }
+}
+
+/* Page: Admin */
+body.page-admin *{ margin:0; padding:0; box-sizing:border-box; }
+html{ height:100%; }
+body.page-admin{
+ font-family:var(--mono);
+ background-color:var(--bg);
+ background-image:
+ linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px);
+ background-size:32px 32px;
+ color:var(--txt);
+ display:flex;
+ flex-direction:column;
+ height:100%;
+ overflow:hidden;
+}
+
+/* ── HEADER ─────────────────────────────────────── */
+body.page-admin header{
+ height:52px;
+ background:linear-gradient(135deg, #060D1A 0%, #0C1C38 100%);
+ border-bottom:2px solid var(--pri);
+ box-shadow:0 2px 24px rgba(0,136,255,.28);
+ display:flex;
+ align-items:center;
+ padding:0 16px;
+ gap:14px;
+ flex-shrink:0;
+ z-index:10;
+}
+body.page-admin .hdr-icon{ width:32px; height:32px; flex-shrink:0; }
+body.page-admin .hdr-title{ font-weight:700; font-size:14px; color:#fff; letter-spacing:5px; text-transform:uppercase; white-space:nowrap; }
+body.page-admin .hdr-title em{ font-style:normal; color:var(--pri); }
+body.page-admin .hdr-div{ width:1px; height:28px; background:rgba(255,255,255,.12); flex-shrink:0; }
+body.page-admin .hdr-badge{ font-size:7px; color:var(--pri); border:1px solid rgba(0,136,255,.5); padding:2px 8px; letter-spacing:2.5px; text-transform:uppercase; white-space:nowrap; }
+body.page-admin .hdr-gap{ flex:1; }
+body.page-admin .hdr-status{ font-size:9px; color:rgba(210,255,235,.9); letter-spacing:2px; text-transform:uppercase; white-space:nowrap; }
+body.page-admin .hdr-back{
+ display:inline-flex; align-items:center; justify-content:center;
+ min-height:32px; padding:0 14px;
+ border:1px solid rgba(120,255,205,.32);
+ background:linear-gradient(180deg, rgba(10,70,48,.82), rgba(4,22,16,.96));
+ box-shadow:inset 0 0 12px rgba(170,255,220,.06), 0 0 10px rgba(120,255,205,.08);
+ color:rgba(245,255,250,.98); text-decoration:none; font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
+ transition:all .16s ease;
+}
+body.page-admin .hdr-back:hover{
+ color:#fff;
+ border-color:rgba(180,255,225,.72);
+ background:linear-gradient(180deg, rgba(18,110,76,.96), rgba(6,36,26,.98));
+ box-shadow:inset 0 0 16px rgba(170,255,220,.1), 0 0 16px rgba(120,255,205,.18);
+}
+body.page-admin .hdr-clk{ display:flex; flex-direction:column; align-items:flex-end; }
+body.page-admin .hdr-clk-lbl{ font-size:8px; color:rgba(255,255,255,.82); letter-spacing:2px; text-transform:uppercase; }
+body.page-admin .hdr-clk-val{ font-weight:700; font-size:16px; color:#fff; letter-spacing:3px; line-height:1.1; }
+
+/* ── PANEL ──────────────────────────────────────── */
+body.page-admin .panel{
+ position:relative;
+ background:
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat,
+ #070D18;
+ border:1px solid rgba(0,255,145,.1);
+ box-shadow:0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018);
+}
+body.page-admin .p-hdr{
+ display:flex; align-items:center; gap:7px;
+ padding:7px 12px;
+ border-bottom:1px solid rgba(0,255,145,.08);
+ background:linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%);
+}
+body.page-admin .p-dot{ width:5px; height:5px; border-radius:50%; background:var(--ok); box-shadow:0 0 6px var(--ok); flex-shrink:0; }
+body.page-admin .p-lbl{ font-size:10px; letter-spacing:3px; color:rgba(220,255,240,.96); text-transform:uppercase; font-weight:bold; }
+body.page-admin .p-tag{ margin-left:auto; font-size:8px; color:rgba(195,255,232,.8); letter-spacing:1px; }
+
+/* ── STATUS ROWS ────────────────────────────────── */
+body.page-admin .sr{ display:flex; align-items:center; padding:4px 10px; gap:7px; border-bottom:1px solid rgba(0,255,145,.04); transition:background .1s; }
+body.page-admin .sr:last-child{ border-bottom:none; }
+body.page-admin .sr:hover{ background:rgba(0,255,145,.02); }
+body.page-admin .sr-led{ width:6px; height:6px; border-radius:50%; flex-shrink:0; border:1px solid rgba(0,255,145,.15); background:#0a1408; }
+body.page-admin .sr-led.led-ok{ background:#00ff91; border-color:#00ff91; box-shadow:0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); }
+body.page-admin .sr-led.led-warn{ background:#FF8C00; border-color:#FF8C00; box-shadow:0 0 5px #FF8C00, 0 0 12px rgba(255,140,0,.5); }
+body.page-admin .sr-led.led-blue{ background:#0088FF; border-color:#0088FF; box-shadow:0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); }
+body.page-admin .sr-led.led-off{ background:#0d1208; border-color:rgba(0,255,145,.08); box-shadow:none; }
+body.page-admin .sr-key{ font-size:9px; letter-spacing:1.8px; color:rgba(210,255,235,.9); text-transform:uppercase; min-width:78px; flex-shrink:0; }
+body.page-admin .sr-val{ font-size:11px; font-weight:700; letter-spacing:.8px; margin-left:auto; color:rgba(245,255,250,.98); text-align:right; }
+
+/* ── SERVICE STATE ──────────────────────────────── */
+body.page-admin .state_active{ color:#00ff91; }
+body.page-admin .state_inactive{ color:#FF3333; }
+body.page-admin .state_unknown{ color:#FF8C00; }
+@keyframes statusBlink{ 0%,100%{opacity:1} 50%{opacity:.1} }
+
+/* ── SECTION DIVIDER ────────────────────────────── */
+body.page-admin .ss-hdr{
+ display:flex; align-items:center; gap:7px;
+ padding:5px 10px 4px;
+ background:rgba(0,255,145,.035);
+ border-top:1px solid rgba(0,255,145,.1);
+ border-bottom:1px solid rgba(0,255,145,.05);
+}
+body.page-admin .ss-hdr-line{ flex:1; height:1px; background:repeating-linear-gradient(90deg, rgba(0,255,145,.22) 0, rgba(0,255,145,.22) 3px, transparent 3px, transparent 6px); }
+body.page-admin .ss-hdr-txt{ font-size:7px; letter-spacing:4px; color:rgba(210,255,235,.9); text-transform:uppercase; }
+
+/* ── GAUGE ──────────────────────────────────────── */
+body.page-admin .sr-gauge{ padding-bottom:6px; }
+body.page-admin .gauge{ flex:1; height:8px; background:rgba(0,255,145,.04); border:1px solid rgba(0,255,145,.14); position:relative; overflow:hidden; }
+body.page-admin .gauge::after{ content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(4,8,16,.88) 8px, rgba(4,8,16,.88) 9px); z-index:2; pointer-events:none; }
+body.page-admin .gauge-fill{ height:100%; width:0%; position:relative; z-index:1; transition:width .6s cubic-bezier(.25,.46,.45,.94); }
+body.page-admin .gauge-temp .gauge-fill{ background:linear-gradient(90deg, rgba(180,60,0,.7), rgba(255,160,0,.9)); box-shadow:2px 0 14px rgba(255,140,0,.45); }
+body.page-admin .gauge-num{ font-size:10px; font-weight:700; min-width:58px; text-align:right; letter-spacing:.5px; color:rgba(255,210,150,.92); }
+
+/* ── MAIN LAYOUT ────────────────────────────────── */
+body.page-admin .admin-main{
+ flex:1; min-height:0; overflow-y:auto;
+ display:flex; flex-direction:column; gap:12px;
+ padding:12px; width:100%;
+}
+body.page-admin .admin-col{ display:flex; flex-direction:column; gap:12px; }
+body.page-admin .admin-shell{
+ flex:1; min-height:0; overflow:hidden;
+ display:flex; flex-direction:column; gap:12px;
+ padding:12px; width:100%;
+}
+body.page-admin .admin-section-tabs{
+ display:flex; gap:6px; flex-shrink:0;
+}
+body.page-admin .admin-section-tab{
+ font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:10px 16px; border:1px solid rgba(120,255,205,.24);
+ background:rgba(0,255,145,.04); color:rgba(215,255,238,.88);
+ cursor:pointer; transition:all .15s;
+}
+body.page-admin .admin-section-tab:hover{
+ border-color:rgba(180,255,225,.48);
+ background:rgba(0,255,145,.08);
+ color:#fff;
+}
+body.page-admin .admin-section-tab.is_active{
+ border-color:rgba(180,255,225,.72);
+ background:linear-gradient(180deg, rgba(20,120,82,.3), rgba(6,40,28,.95));
+ color:#fff;
+ box-shadow:0 0 14px rgba(120,255,205,.16), inset 0 0 14px rgba(180,255,225,.08);
+}
+body.page-admin .admin-section-panel{
+ flex:1; min-height:0; overflow-y:auto; display:none;
+}
+body.page-admin .admin-section-panel.is_active{
+ display:block;
+}
+body.page-admin .admin-section-grid{
+ min-height:100%;
+ display:flex; flex-direction:column; gap:12px;
+}
+body.page-admin .motor-admin-tab .button{
+ font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:10px 12px; border:1px solid rgba(120,255,205,.28); background:rgba(0,255,145,.05);
+ color:rgba(245,255,250,.98); cursor:pointer; transition:all .15s;
+ text-shadow:0 0 10px rgba(120,255,205,.12);
+}
+body.page-admin .motor-admin-tab .button:hover{ background:rgba(0,255,145,.08); color:var(--ok); }
+body.page-admin .motor-admin-tab .button:disabled{ opacity:.3; cursor:not-allowed; }
+body.page-admin .motor-admin-tab .buttonA{ border-color:rgba(0,136,255,.4); background:rgba(0,136,255,.06); color:rgba(120,210,255,.96); }
+body.page-admin .motor-admin-tab .buttonA:hover{ background:rgba(0,136,255,.14); color:#9EDBFF; border-color:rgba(0,136,255,.7); }
+body.page-admin .motor-admin-tab .buttonWarm{ border-color:rgba(255,140,0,.35); background:rgba(255,140,0,.04); color:rgba(255,210,150,.92); }
+body.page-admin .motor-admin-tab .buttonWarm:hover{ background:rgba(255,140,0,.12); color:#FFB86A; border-color:rgba(255,140,0,.7); }
+body.page-admin .motor-admin-tab .buttonDanger{ border-color:rgba(255,51,51,.35); background:rgba(255,51,51,.04); color:rgba(255,180,180,.92); }
+body.page-admin .motor-admin-tab .buttonDanger:hover{ background:rgba(255,51,51,.12); color:#FFD0D0; border-color:rgba(255,51,51,.7); }
+body.page-admin .motor-admin-tab .buttonX{ border-color:rgba(0,255,145,.3); background:rgba(0,255,145,.04); color:rgba(225,255,242,.92); }
+body.page-admin .motor-admin-tab .buttonX:hover{ background:rgba(0,255,145,.1); color:#fff; }
+body.page-admin .motor-admin-tab .container-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px; }
+body.page-admin .motor-admin-tab .container-grid .button{ padding:10px 8px; }
+body.page-admin .motor-admin-tab .copy-text{ font-size:10px; color:rgba(205,255,235,.86); letter-spacing:.4px; line-height:1.6; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); }
+body.page-admin .motor-admin-tab .tab-bar{ display:flex; gap:2px; padding:10px 12px 0; }
+body.page-admin .motor-admin-tab .motor_test_tab_button{
+ font-family:var(--disp); font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:8px 16px; border:1px solid rgba(120,255,205,.22); border-bottom:none;
+ background:transparent; color:rgba(215,255,238,.88); cursor:pointer; transition:all .15s;
+}
+body.page-admin .motor-admin-tab .motor_test_tab_button:hover{ color:#fff; border-color:rgba(180,255,225,.48); background:rgba(0,255,145,.05); }
+body.page-admin .motor-admin-tab .motor_test_tab_button.is_active{ background:rgba(0,255,145,.12); color:#fff; border-color:rgba(180,255,225,.72); }
+body.page-admin .motor-admin-tab .tab-content-wrap{ border-top:1px solid rgba(0,255,145,.08); }
+body.page-admin .motor-admin-tab .motor_test_tab_panel{ display:none; }
+body.page-admin .motor-admin-tab .motor_test_tab_panel.is_active{ display:block; }
+body.page-admin .motor-admin-tab .tab-row{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
+body.page-admin .motor-admin-tab .tab-box{ padding:12px; }
+body.page-admin .motor-admin-tab .tab-box + .tab-box{ border-left:1px solid rgba(0,255,145,.06); }
+body.page-admin .motor-admin-tab .tab-box-lbl{ font-size:8px; letter-spacing:3px; color:rgba(205,255,235,.86); text-transform:uppercase; margin-bottom:8px; }
+body.page-admin .motor-admin-tab .wheel_selector{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
+body.page-admin .motor-admin-tab .wheel_option{ display:flex; align-items:center; gap:6px; cursor:pointer; padding:6px 8px; border:1px solid rgba(0,255,145,.1); background:rgba(0,255,145,.02); transition:all .12s; }
+body.page-admin .motor-admin-tab .wheel_option:hover{ border-color:rgba(120,255,205,.36); background:rgba(0,255,145,.06); }
+body.page-admin .motor-admin-tab .wheel_option input[type="radio"]{ accent-color:var(--ok); width:12px; height:12px; flex-shrink:0; }
+body.page-admin .motor-admin-tab .wheel_option span{ font-size:10px; letter-spacing:.6px; color:rgba(225,255,242,.92); }
+body.page-admin .motor-admin-tab .wheel_option:has(input:checked){ border-color:rgba(180,255,225,.56); background:rgba(0,255,145,.1); }
+body.page-admin .motor-admin-tab .motor_test_grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
+body.page-admin .motor-admin-tab .motor_test_grid .button{ padding:12px 8px; }
+body.page-admin .motor-admin-tab .neutral-toolbar{ display:flex; gap:6px; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); }
+body.page-admin .motor-admin-tab .neutral-toolbar .button{ padding:8px 14px; }
+body.page-admin .motor-admin-tab .steering_neutral_grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:6px; padding:12px; }
+body.page-admin .motor-admin-tab .steering_neutral_card{ border:1px solid rgba(0,255,145,.12); background:rgba(0,255,145,.025); padding:10px; }
+body.page-admin .motor-admin-tab .steering_neutral_card.is_dirty{ border-color:rgba(255,140,0,.4); background:rgba(255,140,0,.03); }
+body.page-admin .motor-admin-tab .steering_neutral_compact_row{ display:flex; flex-direction:column; gap:8px; }
+body.page-admin .motor-admin-tab .steering_neutral_title{ font-size:9px; letter-spacing:1.2px; color:rgba(225,255,242,.92); text-transform:uppercase; display:block; }
+body.page-admin .motor-admin-tab .steering_neutral_value_row_compact{ display:flex; align-items:center; gap:6px; }
+body.page-admin .motor-admin-tab .steering_neutral_value{ font-size:16px; font-weight:700; color:rgba(245,255,250,.98); letter-spacing:2px; flex:1; text-align:center; }
+body.page-admin .motor-admin-tab .is_dirty .steering_neutral_value{ color:#FFB86A; }
+body.page-admin .motor-admin-tab .steering_neutral_adjust{ padding:4px 10px !important; font-size:12px !important; letter-spacing:0 !important; }
+
+/* ── RESPONSIVE ─────────────────────────────────── */
+@media (min-width:640px){
+ body.page-admin .admin-main{ flex-direction:row; overflow:hidden; max-width:1100px; margin:0 auto; }
+ body.page-admin .admin-col{ flex:1; min-width:0; overflow-y:auto; min-height:0; }
+ body.page-admin .admin-section-grid{ flex-direction:row; overflow:hidden; max-width:1200px; margin:0 auto; }
+ body.page-admin .admin-section-grid .admin-col{ flex:1; min-width:0; overflow-y:auto; min-height:0; }
+}
+@media (min-width:1024px){
+ body.page-admin .admin-main{ padding:16px; gap:16px; }
+ body.page-admin .admin-shell{ padding:16px; gap:16px; }
+ body.page-admin .admin-section-grid{ gap:16px; }
+}
+@media (max-width:479px){
+ body.page-admin .hdr-badge, body.page-admin .hdr-clk{ display:none; }
+ body.page-admin .admin-section-tab{ flex:1; text-align:center; padding:10px 8px; }
+ body.page-admin .motor-admin-tab .tab-row{ grid-template-columns:1fr; }
+ body.page-admin .motor-admin-tab .tab-box + .tab-box{ border-left:none; border-top:1px solid rgba(0,255,145,.06); }
+}
+
+/* ── ACTION BUTTONS ─────────────────────────────── */
+body.page-admin .act-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px; }
+body.page-admin .act-btn{
+ font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:11px 10px; border:1px solid rgba(120,255,205,.28); background:rgba(0,255,145,.05);
+ color:rgba(245,255,250,.98); cursor:pointer; transition:all .15s;
+ text-shadow:0 0 10px rgba(120,255,205,.12);
+}
+body.page-admin .act-btn:hover{ background:rgba(0,255,145,.08); color:var(--ok); border-color:rgba(0,255,145,.5); }
+body.page-admin .act-btn.warm{ border-color:rgba(255,140,0,.35); color:rgba(255,140,0,.7); background:rgba(255,140,0,.04); }
+body.page-admin .act-btn.warm:hover{ background:rgba(255,140,0,.12); color:#FF8C00; border-color:rgba(255,140,0,.7); }
+body.page-admin .act-btn.danger{ border-color:rgba(255,51,51,.35); color:rgba(255,51,51,.7); background:rgba(255,51,51,.04); }
+body.page-admin .act-btn.danger:hover{ background:rgba(255,51,51,.12); color:#FF3333; border-color:rgba(255,51,51,.7); }
+body.page-admin .act-btn.full{ grid-column:span 2; }
+body.page-admin .act-btn.subtle{ border-color:rgba(0,255,145,.1); color:rgba(0,255,145,.3); }
+body.page-admin .act-btn.subtle:hover{ color:rgba(0,255,145,.6); border-color:rgba(0,255,145,.35); }
+
+/* ── LINK CARD ──────────────────────────────────── */
+body.page-admin .link-card{ display:flex; align-items:center; gap:12px; padding:10px 12px; }
+body.page-admin .link-card-text strong{ display:block; font-size:11px; letter-spacing:1.2px; color:rgba(235,255,245,.98); margin-bottom:3px; text-transform:uppercase; }
+body.page-admin .link-card-text p{ font-size:10px; color:rgba(205,255,235,.86); letter-spacing:.4px; }
+body.page-admin .link-card-action{ margin-left:auto; flex-shrink:0; }
+body.page-admin .link-btn{
+ font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:8px 14px; border:1px solid rgba(0,136,255,.4); background:rgba(0,136,255,.06);
+ color:rgba(0,136,255,.8); cursor:pointer; text-decoration:none; display:inline-block; transition:all .15s;
+}
+body.page-admin .link-btn:hover{ background:rgba(0,136,255,.14); color:#55AAFF; border-color:rgba(0,136,255,.7); }
+
+/* ── DROPDOWN CONTROL ───────────────────────────── */
+body.page-admin .dropdown-row{ display:flex; align-items:center; gap:10px; padding:10px 12px; }
+body.page-admin .dropdown-row label{ font-size:9px; letter-spacing:1.6px; color:rgba(210,255,235,.9); text-transform:uppercase; min-width:54px; }
+body.page-admin .ctrl-select{
+ font-family:var(--mono); font-size:10px; letter-spacing:1px;
+ color:rgba(245,255,250,.96); background:#050A14;
+ border:1px solid rgba(120,255,205,.36); padding:7px 10px;
+ cursor:pointer; outline:none; flex:1;
+}
+body.page-admin .ctrl-select:focus{ border-color:rgba(0,255,145,.5); }
+body.page-admin .ctrl-status{ font-size:9px; letter-spacing:1.2px; color:rgba(225,255,242,.92); white-space:nowrap; min-width:64px; text-align:right; }
+
+/* ── AUTH OVERLAY ───────────────────────────────── */
+body.page-admin .auth-overlay{
+ position:fixed; inset:0; background:rgba(5,8,15,.93);
+ display:flex; align-items:center; justify-content:center;
+ z-index:1000; backdrop-filter:blur(4px);
+}
+body.page-admin .auth-box{
+ width:320px; display:flex; flex-direction:column; gap:14px; padding:28px 24px;
+ background:
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat,
+ #070D18;
+ border:1px solid rgba(0,255,145,.12);
+ box-shadow:0 0 60px rgba(0,0,0,.8), 0 0 40px rgba(0,136,255,.08);
+}
+body.page-admin .auth-eyebrow{ font-size:8px; letter-spacing:3px; color:rgba(205,255,235,.88); text-transform:uppercase; }
+body.page-admin .auth-title{ font-size:20px; font-weight:700; color:#fff; letter-spacing:4px; text-transform:uppercase; }
+body.page-admin .auth-sub{ font-size:10px; color:rgba(215,255,238,.88); letter-spacing:1px; }
+body.page-admin .auth-input{
+ font-family:var(--mono); font-size:16px; background:#050A14;
+ border:1px solid rgba(0,255,145,.2); color:var(--ok);
+ padding:10px 12px; outline:none; letter-spacing:6px; width:100%;
+}
+body.page-admin .auth-input:focus{ border-color:rgba(0,255,145,.5); }
+body.page-admin .auth-error{ font-size:10px; color:#FF6A6A; letter-spacing:1px; min-height:14px; }
+body.page-admin .auth-submit{
+ font-family:var(--mono); font-size:9px; letter-spacing:2px; text-transform:uppercase;
+ padding:11px; border:1px solid rgba(0,136,255,.5); background:rgba(0,136,255,.1);
+ color:rgba(0,136,255,.9); cursor:pointer; transition:all .15s; width:100%;
+}
+body.page-admin .auth-submit:hover{ background:rgba(0,136,255,.22); color:#55AAFF; }
+
+/* Page: Motor Test */
+body.page-motor-test *{ margin:0; padding:0; box-sizing:border-box; }
+html{ height:100%; }
+body.page-motor-test{
+ font-family:var(--mono);
+ background-color:var(--bg);
+ background-image:
+ linear-gradient(rgba(0,255,145,.04) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(0,255,145,.04) 1px, transparent 1px);
+ background-size:32px 32px;
+ color:var(--txt);
+ display:flex; flex-direction:column; height:100%; overflow:hidden;
+}
+
+/* ── HEADER ─────────────────────────────────────── */
+body.page-motor-test header{
+ height:52px;
+ background:linear-gradient(135deg, #060D1A 0%, #0C1C38 100%);
+ border-bottom:2px solid var(--pri);
+ box-shadow:0 2px 24px rgba(0,136,255,.28);
+ display:flex; align-items:center; padding:0 16px; gap:14px; flex-shrink:0; z-index:10;
+}
+body.page-motor-test .hdr-icon{ width:32px; height:32px; flex-shrink:0; }
+body.page-motor-test .hdr-title{ font-weight:700; font-size:14px; color:#fff; letter-spacing:5px; text-transform:uppercase; white-space:nowrap; }
+body.page-motor-test .hdr-title em{ font-style:normal; color:var(--pri); }
+body.page-motor-test .hdr-div{ width:1px; height:28px; background:rgba(255,255,255,.12); flex-shrink:0; }
+body.page-motor-test .hdr-badge{ font-size:7px; color:var(--pri); border:1px solid rgba(0,136,255,.5); padding:2px 8px; letter-spacing:2.5px; text-transform:uppercase; white-space:nowrap; }
+body.page-motor-test .hdr-gap{ flex:1; }
+body.page-motor-test .hdr-status{ font-size:8px; color:rgba(0,255,145,.55); letter-spacing:2px; text-transform:uppercase; white-space:nowrap; }
+body.page-motor-test .hdr-back{
+ display:inline-flex; align-items:center; justify-content:center;
+ min-height:32px; padding:0 14px;
+ border:1px solid rgba(120,255,205,.32);
+ background:linear-gradient(180deg, rgba(10,70,48,.82), rgba(4,22,16,.96));
+ box-shadow:inset 0 0 12px rgba(170,255,220,.06), 0 0 10px rgba(120,255,205,.08);
+ color:rgba(245,255,250,.98); text-decoration:none; font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
+ transition:all .16s ease;
+}
+body.page-motor-test .hdr-back:hover{
+ color:#fff;
+ border-color:rgba(180,255,225,.72);
+ background:linear-gradient(180deg, rgba(18,110,76,.96), rgba(6,36,26,.98));
+ box-shadow:inset 0 0 16px rgba(170,255,220,.1), 0 0 16px rgba(120,255,205,.18);
+}
+body.page-motor-test .hdr-clk{ display:flex; flex-direction:column; align-items:flex-end; }
+body.page-motor-test .hdr-clk-lbl{ font-size:7px; color:rgba(255,255,255,.72); letter-spacing:2px; text-transform:uppercase; }
+body.page-motor-test .hdr-clk-val{ font-weight:700; font-size:14px; color:#fff; letter-spacing:3px; line-height:1.1; }
+
+/* ── PANEL ──────────────────────────────────────── */
+body.page-motor-test .panel{
+ position:relative;
+ background:
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 0/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 0 100%/1px 14px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/14px 1px no-repeat,
+ linear-gradient(rgba(0,255,145,.55),rgba(0,255,145,.55)) 100% 100%/1px 14px no-repeat,
+ #070D18;
+ border:1px solid rgba(0,255,145,.1);
+ box-shadow:0 0 24px rgba(0,0,0,.5), inset 0 0 40px rgba(0,255,145,.018);
+}
+body.page-motor-test .p-hdr{
+ display:flex; align-items:center; gap:7px; padding:7px 12px;
+ border-bottom:1px solid rgba(0,255,145,.08);
+ background:linear-gradient(90deg, rgba(0,255,145,.05) 0%, transparent 100%);
+}
+body.page-motor-test .p-dot{ width:5px; height:5px; border-radius:50%; background:var(--ok); box-shadow:0 0 6px var(--ok); flex-shrink:0; }
+body.page-motor-test .p-lbl{ font-size:8px; letter-spacing:3px; color:rgba(0,255,145,.7); text-transform:uppercase; font-weight:bold; }
+body.page-motor-test .p-tag{ margin-left:auto; font-size:7px; color:rgba(170,255,220,.68); letter-spacing:1px; }
+
+/* ── STATUS ROWS ────────────────────────────────── */
+body.page-motor-test .sr{ display:flex; align-items:center; padding:5px 12px; gap:8px; border-bottom:1px solid rgba(0,255,145,.04); }
+body.page-motor-test .sr:last-child{ border-bottom:none; }
+body.page-motor-test .sr-led{ width:6px; height:6px; border-radius:50%; flex-shrink:0; border:1px solid rgba(0,255,145,.15); background:#0a1408; }
+body.page-motor-test .sr-led.led-ok{ background:#00ff91; border-color:#00ff91; box-shadow:0 0 5px #00ff91, 0 0 12px rgba(0,255,145,.55); }
+body.page-motor-test .sr-led.led-blue{ background:#0088FF; border-color:#0088FF; box-shadow:0 0 5px #0088FF, 0 0 12px rgba(0,136,255,.5); }
+body.page-motor-test .sr-led.led-off{ background:#0d1208; border-color:rgba(0,255,145,.08); }
+body.page-motor-test .sr-key{ font-size:7px; letter-spacing:2px; color:rgba(175,255,220,.82); text-transform:uppercase; min-width:80px; flex-shrink:0; }
+body.page-motor-test .sr-val{ font-size:9px; font-weight:700; letter-spacing:.8px; margin-left:auto; color:rgba(0,255,145,.85); }
+body.page-motor-test .state_active{ color:#00ff91; }
+body.page-motor-test .state_inactive{ color:#FF3333; }
+body.page-motor-test .state_unknown{ color:#FF8C00; }
+
+/* ── MAIN LAYOUT ────────────────────────────────── */
+body.page-motor-test .admin-main{
+ flex:1; min-height:0; overflow-y:auto;
+ display:flex; flex-direction:column; gap:12px;
+ padding:12px; width:100%;
+}
+body.page-motor-test .admin-col{ display:flex; flex-direction:column; gap:12px; }
+
+/* ── RESPONSIVE ─────────────────────────────────── */
+@media (min-width:640px){
+ body.page-motor-test .admin-main{ flex-direction:row; overflow:hidden; max-width:1200px; margin:0 auto; }
+ body.page-motor-test .admin-col{ flex:1; min-width:0; overflow-y:auto; min-height:0; }
+ body.page-motor-test .admin-col:first-child{ flex:0 0 320px; }
+}
+@media (min-width:1024px){
+ body.page-motor-test .admin-main{ padding:16px; gap:16px; }
+ body.page-motor-test .admin-col:first-child{ flex:0 0 380px; }
+}
+@media (max-width:479px){
+ body.page-motor-test .hdr-badge, body.page-motor-test .hdr-clk{ display:none; }
+}
+
+/* ── BUTTONS ────────────────────────────────────── */
+body.page-motor-test .button{
+ font-family:var(--disp); font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:10px 12px; border:1px solid rgba(120,255,205,.28); background:rgba(0,255,145,.05);
+ color:rgba(245,255,250,.98); cursor:pointer; transition:all .15s;
+ text-shadow:0 0 10px rgba(120,255,205,.12);
+}
+body.page-motor-test .button:hover{ background:rgba(0,255,145,.08); color:var(--ok); }
+body.page-motor-test .button:disabled{ opacity:.3; cursor:not-allowed; }
+body.page-motor-test .buttonA{ border-color:rgba(0,136,255,.4); background:rgba(0,136,255,.06); color:rgba(0,136,255,.8); }
+body.page-motor-test .buttonA:hover{ background:rgba(0,136,255,.14); color:#55AAFF; border-color:rgba(0,136,255,.7); }
+body.page-motor-test .buttonA:disabled{ opacity:.3; }
+body.page-motor-test .buttonX{ border-color:rgba(0,255,145,.3); background:rgba(0,255,145,.04); color:rgba(0,255,145,.7); }
+body.page-motor-test .buttonX:hover{ background:rgba(0,255,145,.1); color:var(--ok); }
+body.page-motor-test .buttonWarm{ border-color:rgba(255,140,0,.35); background:rgba(255,140,0,.04); color:rgba(255,140,0,.7); }
+body.page-motor-test .buttonWarm:hover{ background:rgba(255,140,0,.12); color:#FF8C00; }
+body.page-motor-test .buttonWarm:disabled{ opacity:.3; }
+body.page-motor-test .buttonDanger{ border-color:rgba(255,51,51,.35); background:rgba(255,51,51,.04); color:rgba(255,51,51,.7); }
+body.page-motor-test .buttonDanger:hover{ background:rgba(255,51,51,.12); color:#FF3333; }
+
+/* ── CONTAINER CONTROL ──────────────────────────── */
+body.page-motor-test .container-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px 12px; }
+body.page-motor-test .container-grid .button{ padding:10px 8px; }
+
+/* ── COPY TEXT ──────────────────────────────────── */
+body.page-motor-test .copy-text{ font-size:8px; color:rgba(175,255,220,.78); letter-spacing:.5px; line-height:1.6; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); }
+
+/* ── TAB BAR ────────────────────────────────────── */
+body.page-motor-test .tab-bar{ display:flex; gap:2px; padding:10px 12px 0; }
+body.page-motor-test .motor_test_tab_button{
+ font-family:var(--disp); font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
+ padding:8px 16px; border:1px solid rgba(120,255,205,.22); border-bottom:none;
+ background:transparent; color:rgba(215,255,238,.88); cursor:pointer; transition:all .15s;
+}
+body.page-motor-test .motor_test_tab_button:hover{ color:rgba(0,255,145,.6); border-color:rgba(0,255,145,.35); }
+body.page-motor-test .motor_test_tab_button.is_active{ background:rgba(0,255,145,.06); color:#00ff91; border-color:rgba(0,255,145,.4); }
+body.page-motor-test .tab-content-wrap{ border-top:1px solid rgba(0,255,145,.08); }
+
+/* ── TAB PANELS ─────────────────────────────────── */
+body.page-motor-test .motor_test_tab_panel{ display:none; }
+body.page-motor-test .motor_test_tab_panel.is_active{ display:block; }
+
+/* ── TWO-COLUMN TAB LAYOUT ──────────────────────── */
+body.page-motor-test .tab-row{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
+body.page-motor-test .tab-box{ padding:12px; }
+body.page-motor-test .tab-box + .tab-box{ border-left:1px solid rgba(0,255,145,.06); }
+body.page-motor-test .tab-box-lbl{ font-size:6px; letter-spacing:4px; color:rgba(170,255,220,.82); text-transform:uppercase; margin-bottom:8px; }
+
+/* ── WHEEL SELECTOR ─────────────────────────────── */
+body.page-motor-test .wheel_selector{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
+body.page-motor-test .wheel_option{ display:flex; align-items:center; gap:6px; cursor:pointer; padding:6px 8px; border:1px solid rgba(0,255,145,.1); background:rgba(0,255,145,.02); transition:all .12s; }
+body.page-motor-test .wheel_option:hover{ border-color:rgba(0,255,145,.3); background:rgba(0,255,145,.05); }
+body.page-motor-test .wheel_option input[type="radio"]{ accent-color:var(--ok); width:12px; height:12px; flex-shrink:0; }
+body.page-motor-test .wheel_option span{ font-size:8px; letter-spacing:.8px; color:rgba(0,255,145,.6); }
+body.page-motor-test .wheel_option:has(input:checked){ border-color:rgba(0,255,145,.5); background:rgba(0,255,145,.07); }
+body.page-motor-test .wheel_option:has(input:checked) span{ color:var(--ok); }
+
+/* ── MOTOR TEST GRID ────────────────────────────── */
+body.page-motor-test .motor_test_grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
+body.page-motor-test .motor_test_grid .button{ padding:12px 8px; }
+
+/* ── NEUTRAL TOOLBAR ────────────────────────────── */
+body.page-motor-test .neutral-toolbar{ display:flex; gap:6px; padding:8px 12px; border-bottom:1px solid rgba(0,255,145,.05); }
+body.page-motor-test .neutral-toolbar .button{ padding:7px 14px; font-size:8px; }
+
+/* ── NEUTRAL CARDS ──────────────────────────────── */
+body.page-motor-test .steering_neutral_grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:6px; padding:12px; }
+body.page-motor-test .steering_neutral_card{ border:1px solid rgba(0,255,145,.12); background:rgba(0,255,145,.025); padding:10px; }
+body.page-motor-test .steering_neutral_card.is_dirty{ border-color:rgba(255,140,0,.4); background:rgba(255,140,0,.03); }
+body.page-motor-test .steering_neutral_compact_row{ display:flex; flex-direction:column; gap:8px; }
+body.page-motor-test .steering_neutral_card_header_compact{ }
+body.page-motor-test .steering_neutral_title{ font-size:8px; letter-spacing:1.5px; color:rgba(0,255,145,.7); text-transform:uppercase; display:block; }
+body.page-motor-test .steering_neutral_value_row_compact{ display:flex; align-items:center; gap:6px; }
+body.page-motor-test .steering_neutral_value{ font-size:14px; font-weight:700; color:rgba(0,255,145,.9); letter-spacing:2px; flex:1; text-align:center; }
+body.page-motor-test .is_dirty .steering_neutral_value{ color:#FF8C00; }
+body.page-motor-test .steering_neutral_adjust{ padding:4px 10px !important; font-size:12px !important; letter-spacing:0 !important; }
+
+/* ── BACK LINKS ─────────────────────────────────── */
+body.page-motor-test .back-row{ display:flex; gap:12px; padding:10px 12px; }
+body.page-motor-test .back-link{ font-family:var(--disp); font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:rgba(225,255,242,.92); text-decoration:none; padding:8px 14px; border:1px solid rgba(120,255,205,.22); transition:all .15s; }
+body.page-motor-test .back-link:hover{ color:rgba(0,255,145,.8); border-color:rgba(0,255,145,.4); }
diff --git a/ExoMy_Software-master/gui/index.html b/ExoMy_Software-master/gui/index.html
index 8327f6e..99912a3 100644
--- a/ExoMy_Software-master/gui/index.html
+++ b/ExoMy_Software-master/gui/index.html
@@ -5,9 +5,9 @@
ExoMy // Ground Control
-
+
-
+
-
-
+
+
Systemstatus
Web Control
+
+
-
+
@@ -613,6 +614,46 @@ function updateCameraFrameLayout() {
frame.style.setProperty("--cam-scale", Math.max(0.55, Math.min(1.1, frameWidth / 640)).toFixed(3));
}
+function setStatPanelCollapsed(collapsed, immediate) {
+ var panel = document.getElementById("stat-panel");
+ var toggle = document.getElementById("stat-panel-toggle");
+ var body = document.getElementById("stat-panel-body");
+ if (!panel || !toggle || !body) return;
+ var isCollapsed = panel.classList.contains("collapsed");
+ if (isCollapsed === collapsed && !immediate) return;
+
+ body.style.overflow = "hidden";
+ toggle.setAttribute("aria-expanded", collapsed ? "false" : "true");
+ var indicator = toggle.querySelector(".stat-toggle-indicator");
+ if (indicator) {
+ indicator.textContent = collapsed ? "+" : "-";
+ }
+
+ if (immediate) {
+ panel.classList.toggle("collapsed", collapsed);
+ body.style.height = collapsed ? "0px" : "auto";
+ return;
+ }
+
+ if (collapsed) {
+ body.style.height = body.scrollHeight + "px";
+ body.offsetHeight;
+ panel.classList.add("collapsed");
+ body.style.height = "0px";
+ } else {
+ panel.classList.remove("collapsed");
+ body.style.height = "0px";
+ body.offsetHeight;
+ body.style.height = body.scrollHeight + "px";
+ }
+}
+
+function toggleStatPanel() {
+ var panel = document.getElementById("stat-panel");
+ if (!panel) return;
+ setStatPanelCollapsed(!panel.classList.contains("collapsed"));
+}
+
window.addEventListener("load", function () {
setText("cam-host", hostUrl);
updateModeDisplay();
@@ -639,6 +680,26 @@ window.addEventListener("load", function () {
window.addEventListener("orientationchange", function () {
window.setTimeout(updateCameraFrameLayout, 80);
});
+ var statBody = document.getElementById("stat-panel-body");
+ if (statBody) {
+ statBody.addEventListener("transitionend", function (event) {
+ if (event.propertyName !== "height") return;
+ var panel = document.getElementById("stat-panel");
+ if (!panel) return;
+ statBody.style.height = panel.classList.contains("collapsed") ? "0px" : "auto";
+ });
+ }
+ setStatPanelCollapsed(true, true);
+ var statToggle = document.getElementById("stat-panel-toggle");
+ if (statToggle) {
+ statToggle.addEventListener("click", toggleStatPanel);
+ statToggle.addEventListener("keydown", function (event) {
+ if (event.key === "Enter" || event.key === " ") {
+ event.preventDefault();
+ toggleStatPanel();
+ }
+ });
+ }
ros = new ROSLIB.Ros({
url: "ws://" + hostUrl + ":9090"