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
+22
-8
@@ -228,17 +228,31 @@ impl NomadHeadTracker {
|
||||
frame
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn crc8_dvb_s2(data: &[u8]) -> u8 {
|
||||
const TABLE: [u8; 256] = {
|
||||
let mut table = [0u8; 256];
|
||||
let mut i = 0;
|
||||
while i < 256 {
|
||||
let mut curr = i as u8;
|
||||
let mut j = 0;
|
||||
while j < 8 {
|
||||
if (curr & 0x80) != 0 {
|
||||
curr = (curr << 1) ^ 0xD5;
|
||||
} else {
|
||||
curr <<= 1;
|
||||
}
|
||||
j += 1;
|
||||
}
|
||||
table[i] = curr;
|
||||
i += 1;
|
||||
}
|
||||
table
|
||||
};
|
||||
|
||||
let mut crc: u8 = 0;
|
||||
for &byte in data {
|
||||
crc ^= byte;
|
||||
for _ in 0..8 {
|
||||
if (crc & 0x80) != 0 {
|
||||
crc = (crc << 1) ^ 0xD5;
|
||||
} else {
|
||||
crc <<= 1;
|
||||
}
|
||||
}
|
||||
crc = TABLE[(crc ^ byte) as usize];
|
||||
}
|
||||
crc
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user