#![allow(unused_variables, dead_code)] use simconnect_sdk_derive::SimConnectObject; #[derive(Debug, Clone, SimConnectObject)] #[simconnect(period = "second")] struct GpsData1 { #[simconnect(name = "PLANE LATITUDE", unit = "degrees")] pub lat: f64, #[simconnect(name = "PLANE LONGITUDE", unit = "degrees")] pub lon: f64, } #[derive(Debug, Clone, SimConnectObject)] #[simconnect(period = "second", condition = "none")] struct GpsData2 { #[simconnect(name = "PLANE LATITUDE", unit = "degrees")] pub lat: f64, #[simconnect(name = "PLANE LONGITUDE", unit = "degrees")] pub lon: f64, } #[derive(Debug, Clone, SimConnectObject)] #[simconnect(period = "visual-frame", condition = "changed")] struct GpsData3 { #[simconnect(name = "PLANE LATITUDE", unit = "degrees")] pub lat: f64, #[simconnect(name = "PLANE LONGITUDE", unit = "degrees")] pub lon: f64, } fn main() {}