feat(perf,ux): GPU compute warp, dual-layer OpenXR OSD, HW decode, profiles & modular architecture (Lots 3 & 4)

This commit is contained in:
bleack committed 2026-11-25 23:05:02 +01:00
1 parent d82a65d9e6
commit 4aa4fc06e7
27 files changed
+9678 -7045

No files matched your search

+2 -2
View File
@@ -213,7 +213,7 @@ impl NomadHeadTracker {
NomadProtocol::Mavlink => {
if self
.last_mav_heartbeat
.map_or(true, |t| t.elapsed() >= Duration::from_secs(1))
.is_none_or(|t| t.elapsed() >= Duration::from_secs(1))
{
let hb = Self::encode_mavlink_heartbeat(self.mav_seq);
self.mav_seq = self.mav_seq.wrapping_add(1);
@@ -273,7 +273,7 @@ impl NomadHeadTracker {
#[inline]
pub fn deg_to_crsf(angle_deg: f32, max_deg: f32) -> u16 {
if angle_deg.is_nan() || !(max_deg > 0.0) {
if !angle_deg.is_finite() || !max_deg.is_finite() || max_deg <= 0.0 {
return CRSF_CHANNEL_MID;
}
let norm = (angle_deg / max_deg).clamp(-1.0, 1.0);