Added handler for turreted drones to share multiple camera components to UAS Tool

This commit is contained in:
2026-05-09 11:58:44 -03:00
parent 3c37185c1a
commit dcc9e1d469
12 changed files with 1200 additions and 139 deletions

View File

@@ -42,6 +42,7 @@ pub struct UasSystemPayload {
pub image_lat_deg: f64,
pub image_lon_deg: f64,
pub image_alt_msl_m: f32,
pub has_turret_camera: bool,
}
impl FromArma for UasTelemetryPayload {
@@ -123,6 +124,7 @@ impl FromArma for UasSystemPayload {
image_lat_deg,
image_lon_deg,
image_alt_msl_m,
has_turret_camera,
) = <(
String,
String,
@@ -147,6 +149,7 @@ impl FromArma for UasSystemPayload {
f64,
f64,
f32,
i32,
)>::from_arma(data)?;
Ok(Self {
@@ -173,6 +176,7 @@ impl FromArma for UasSystemPayload {
image_lat_deg,
image_lon_deg,
image_alt_msl_m,
has_turret_camera: has_turret_camera != 0,
})
}
}