mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(nomad): add editable network target, 50Hz manual mock, MAVLink protocol & ELRS Backpack UDP MSPv2 patch
This commit is contained in:
1 parent
7bee072e21
commit
e859d0e21c
7 files changed
+860
-57
No files matched your search
+4
-4
@@ -1,7 +1,7 @@
|
||||
use crate::config::AppConfig;
|
||||
use crate::dome_projection::{DomeWarpLut, ProjectionMode};
|
||||
use crate::dvr::{DvrContainer, DvrMode, DvrRecorder};
|
||||
use crate::nomad_elrs::{HeadPoseSample, NomadHeadTracker};
|
||||
use crate::nomad_elrs::{HeadPoseSample, NomadHeadTracker, NomadProtocol};
|
||||
use crate::telemetry_osd::{OsdOverlay, TelemetryReceiver, TelemetryState};
|
||||
use crate::video_usb::{UsbVideoReceiver, VideoLinkState};
|
||||
use crate::vulkan_xr::VulkanXrContext;
|
||||
@@ -408,21 +408,21 @@ fn sync_head_tracker(
|
||||
monitor: &Arc<Mutex<RuntimeMonitor>>,
|
||||
) {
|
||||
if ht_enabled && head_tracker_opt.is_none() {
|
||||
let use_crsf = cfg.ht_protocol.eq_ignore_ascii_case("crsf");
|
||||
let protocol = NomadProtocol::from_str(&cfg.ht_protocol);
|
||||
match NomadHeadTracker::new(
|
||||
&cfg.nomad_ip,
|
||||
cfg.nomad_port,
|
||||
cfg.max_pan_deg,
|
||||
cfg.max_tilt_deg,
|
||||
cfg.max_roll_deg,
|
||||
use_crsf,
|
||||
protocol,
|
||||
) {
|
||||
Ok(ht) => {
|
||||
monitor.lock().nomad_wifi_status = SubsystemStatus::Running(format!(
|
||||
"ON - Cible {}:{} ({})",
|
||||
cfg.nomad_ip,
|
||||
cfg.nomad_port,
|
||||
if use_crsf { "CRSF" } else { "MSPv2 0x0383" }
|
||||
protocol.label()
|
||||
));
|
||||
*head_tracker_opt = Some(ht);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user