HUD-Farbe konfigurierbar, Neigungskalibrierung, Auto-Rotate verbessert
- HUD-Farbe per Farbwähler im Admin einstellbar (localStorage) - Schwarze Kontur auf HUD-Elementen via CSS drop-shadow und canvas shadowBlur - Himmelsrichtungen auf Deutsch (O statt E, etc.) - Roll/Pitch-Neigung kann im Admin genullt werden (imu_tilt_calibration.json) - Neigungsoffset wird im Kamera-Overlay berücksichtigt - Auto-Rotate läuft jetzt nativ als rospy-Script im Docker-Container - Auto-Rotate erkennt aktuellen Locomotion-Mode und stellt ihn danach wieder her - Auto-Rotate pausiert Web-GUI-Joystick via localStorage-Flag - Feste 20%-Geschwindigkeit für Auto-Rotate (vel=4, Expo-äquivalent) - Vignette entfernt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2938,6 +2938,7 @@
|
||||
if (!running && rotatePoller) {
|
||||
clearInterval(rotatePoller);
|
||||
rotatePoller = null;
|
||||
try { localStorage.removeItem('autoRotateActive'); } catch(e) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2954,6 +2955,7 @@
|
||||
});
|
||||
var data = await response.json();
|
||||
if (!response.ok) throw new Error(data.status || ('status ' + response.status));
|
||||
try { localStorage.setItem('autoRotateActive', '1'); } catch(e) {}
|
||||
updateRotateUi(data.rotate);
|
||||
setAdminStatus(data.status || 'Drehung gestartet');
|
||||
if (rotatePoller) clearInterval(rotatePoller);
|
||||
@@ -2969,6 +2971,7 @@
|
||||
try {
|
||||
var response = await fetch(adminApiBase + '/api/imu/rotate-stop', { method: 'POST' });
|
||||
var data = await response.json();
|
||||
try { localStorage.removeItem('autoRotateActive'); } catch(e) {}
|
||||
updateRotateUi(data.rotate);
|
||||
setAdminStatus(data.status || 'Drehung gestoppt');
|
||||
} catch (e) {
|
||||
|
||||
+7
-1
@@ -827,8 +827,10 @@ function setRosStatus(text) {
|
||||
setText("ros-state", text);
|
||||
}
|
||||
|
||||
var autoRotateActive = false;
|
||||
|
||||
function controlsAreBlocked() {
|
||||
return pageConnection.state === "offline";
|
||||
return pageConnection.state === "offline" || autoRotateActive;
|
||||
}
|
||||
|
||||
function updateControlAvailability() {
|
||||
@@ -1572,6 +1574,10 @@ function toggleStatPanel() {
|
||||
|
||||
window.addEventListener("storage", function (e) {
|
||||
if (e.key === "hudHexColor" && e.newValue) applyHudColor(e.newValue);
|
||||
if (e.key === "autoRotateActive") {
|
||||
autoRotateActive = e.newValue === "1";
|
||||
if (!autoRotateActive) { setAxes(0, 0); }
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("load", function () {
|
||||
|
||||
Reference in New Issue
Block a user