mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat: integrate DVR, live optical tuning and ARM64 tooling into modern GPUI Control Center
- Modern GPUI (src/gui_gpui.rs): Added 1-click DVR quick action button in header with live recording time/size, DVR status badge, reactive snapshots, live optical parameter tuning in Settings, and dedicated DVR settings card (MKV/MP4, StreamCopy/Composited). - Engine & DVR (src/engine.rs, src/dvr.rs, src/video_usb.rs): Integrated DVR recorder lifecycle with GStreamer supervisor probe for zero-CPU stream copy and hardware/composited OSD recording, dynamic optical updates without pipeline restarts. - Classic GUI fallback (src/gui.rs): Added DVR quick toggle, live optical slider callbacks, and full DVR settings section in egui. - OSD & Math optimizations: Zero-alloc stack formatting in src/telemetry_osd.rs, compile-time CRC8 table in src/nomad_elrs.rs, buffered file logger in src/logger.rs. - Steam Frame ARM64 scripts: udev rule scripts/99-radxa-vrx-rndis.rules, build & deployment tools scripts/build_steamframe_arm64.sh, scripts/deploy_to_steamframe.sh.
This commit is contained in:
1 parent
d5cc72750e
commit
7bee072e21
16 files changed
+1397
-75
No files matched your search
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
# Script de compilation optimisée pour le casque Valve Steam Frame (ARM64 / SteamOS)
|
||||
set -euo pipefail
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." >/dev/null 2>&1 && pwd)"
|
||||
cd "$DIR"
|
||||
|
||||
echo "=== Compilation optimisée pour Valve Steam Frame (SteamOS ARM64) ==="
|
||||
|
||||
ARCH=$(uname -m)
|
||||
echo "[1/3] Architecture détectée : ${ARCH}"
|
||||
|
||||
if [ "$ARCH" = "aarch64" ]; then
|
||||
echo "[+] Exécution native sur architecture ARM64 (Steam Frame / Snapdragon 8 Gen 3)."
|
||||
|
||||
# Vérification des dépendances sur SteamOS / Arch Linux ARM
|
||||
if command -v pacman >/dev/null 2>&1; then
|
||||
echo "[+] Vérification des paquets requis via pacman..."
|
||||
sudo pacman -S --needed --noconfirm \
|
||||
gcc pkgconf vulkan-devel openxr \
|
||||
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav || true
|
||||
fi
|
||||
|
||||
echo "[2/3] Compilation Release native avec optimisations CPU Cortex-X4 / NEON..."
|
||||
export RUSTFLAGS="-C target-cpu=native -C opt-level=3"
|
||||
cargo build --release
|
||||
|
||||
echo "[3/3] Installation locale du lanceur .desktop..."
|
||||
mkdir -p ~/.local/share/applications
|
||||
cp steamframe-fpv.desktop ~/.local/share/applications/
|
||||
sed -i "s|/home/deck/projects/steamframe_fpv|$DIR|g" ~/.local/share/applications/steamframe-fpv.desktop
|
||||
|
||||
echo "=== SUCCÈS : Binaire compilé dans $DIR/target/release/steamframe-fpv ==="
|
||||
else
|
||||
echo "[!] Exécution sur hôte ${ARCH} (Ubuntu / PC de développement)."
|
||||
echo "[2/3] Compilation Release hôte standard..."
|
||||
cargo build --release
|
||||
|
||||
echo "[3/3] Création de l'archive de déploiement pour le Steam Frame..."
|
||||
mkdir -p dist
|
||||
tar --exclude="target" --exclude=".git" -czf dist/steamframe-fpv-deploy.tar.gz \
|
||||
Cargo.toml Cargo.lock src scripts assets README.md launch.sh steamframe-fpv.desktop
|
||||
|
||||
echo "=== SUCCÈS : Archive de déploiement créée dans $DIR/dist/steamframe-fpv-deploy.tar.gz ==="
|
||||
echo "Pour déployer sur le casque, lancez : ./scripts/deploy_to_steamframe.sh [ip_steamframe]"
|
||||
fi
|
||||
Reference in new issue
Block a user