ComRadio
USI.Core
Public SDK type.
public sealed class ComRadio : AircraftRadioMethods
TryGetActiveFrequencyAsync
public Task<USIResult<Frequency>> TryGetActiveFrequencyAsync()Gets the active frequency in the selected radio-frequency unit.
TryGetActiveFrequencyInUseAsync
public Task<USIResult<Boolean>> TryGetActiveFrequencyInUseAsync()Gets whether the active frequency currently has a pilot or air-traffic control transmission, independently of this radio's receive selection.
TryGetActiveFrequencyMhzAsync
public Task<USIResult<Double>> TryGetActiveFrequencyMhzAsync()TryGetActiveStationBearingAsync
public Task<USIResult<Angle>> TryGetActiveStationBearingAsync()Gets bearing to the tuned station in the selected angle unit.
TryGetActiveStationBearingDegreesAsync
public Task<USIResult<Double>> TryGetActiveStationBearingDegreesAsync()Gets the bearing from the aircraft to the airport station associated with the active channel.
TryGetActiveStationDistanceAsync
public Task<USIResult<Length>> TryGetActiveStationDistanceAsync()Gets distance to the tuned station in the selected distance unit.
TryGetActiveStationDistanceNauticalMilesAsync
public Task<USIResult<Double>> TryGetActiveStationDistanceNauticalMilesAsync()Gets distance to the tuned airport station in nautical miles.
TryGetActiveStationIdentifierAsync
public Task<USIResult<String>> TryGetActiveStationIdentifierAsync()Gets the identifier of the airport station tuned on the active channel.
TryGetActiveStationPositionAsync
public Task<USIResult<GeographicPosition>> TryGetActiveStationPositionAsync()Gets the geodetic position of the airport station associated with the active channel.
TryGetActiveStationServiceTypeAsync
public Task<USIResult<ComStationServiceType>> TryGetActiveStationServiceTypeAsync()Gets the air-traffic service associated with the active channel.
TryGetChannelSpacingAsync
public Task<USIResult<ComChannelSpacing>> TryGetChannelSpacingAsync()Gets the radio's selected communication-channel spacing.
TryGetFailureDetectedAsync
public Task<USIResult<Boolean>> TryGetFailureDetectedAsync()Gets whether this communication radio has an active equipment failure.
TryGetGroundCommunicationPowerSwitchEnabledAsync
public Task<USIResult<Boolean>> TryGetGroundCommunicationPowerSwitchEnabledAsync()Gets whether this radio's dedicated ground-communication power switch is enabled. This is separate from the radio's normal equipment-power switch and can permit ground communication with the avionics bus off.
TryGetOperationalStatusAsync
public Task<USIResult<AircraftRadioOperationalStatus>> TryGetOperationalStatusAsync()TryGetPowerSwitchEnabledAsync
public Task<USIResult<Boolean>> TryGetPowerSwitchEnabledAsync()Gets whether this communication radio's own power switch is enabled.
TryGetReceiveSelectedAsync
public Task<USIResult<Boolean>> TryGetReceiveSelectedAsync()TryGetReceivingAsync
public Task<USIResult<Boolean>> TryGetReceivingAsync()Gets whether this radio is currently receiving an ATC, pilot, or plugin-provided transmission. This is distinct from receive selection.
TryGetStandbyFrequencyAsync
public Task<USIResult<Frequency>> TryGetStandbyFrequencyAsync()Gets the standby frequency in the selected radio-frequency unit.
TryGetStandbyFrequencyMhzAsync
public Task<USIResult<Double>> TryGetStandbyFrequencyMhzAsync()TryGetStandbyStationIdentifierAsync
public Task<USIResult<String>> TryGetStandbyStationIdentifierAsync()Gets the identifier of the airport station tuned on the standby channel.
TryGetStandbyStationServiceTypeAsync
public Task<USIResult<ComStationServiceType>> TryGetStandbyStationServiceTypeAsync()Gets the air-traffic service associated with the standby channel.
TryGetStoredFrequencyAsync
public Task<USIResult<Frequency>> TryGetStoredFrequencyAsync(int presetNumber)Gets a preset in the selected radio-frequency unit.
TryGetStoredFrequencyMhzAsync
public Task<USIResult<Double>> TryGetStoredFrequencyMhzAsync(int presetNumber)Gets a stored-frequency preset. Preset numbers are one-based, matching the labels presented to a pilot rather than a provider's array index.
TryGetTransmitSelectedAsync
public Task<USIResult<Boolean>> TryGetTransmitSelectedAsync()TryGetTransmittingAsync
public Task<USIResult<Boolean>> TryGetTransmittingAsync()Gets whether the user's voice is currently being transmitted through this radio. This is distinct from transmitter selection.
TryGetVolumeRatioAsync
public Task<USIResult<Double>> TryGetVolumeRatioAsync()TrySelectTransmitterAsync
public Task<USIResult> TrySelectTransmitterAsync()TrySetGroundCommunicationPowerSwitchEnabledAsync
public Task<USIResult> TrySetGroundCommunicationPowerSwitchEnabledAsync(bool enabled)Enables or disables this radio's dedicated ground-communication power switch when the loaded aircraft and provider expose one.
TrySetPowerSwitchEnabledAsync
public Task<USIResult> TrySetPowerSwitchEnabledAsync(bool enabled)Enables or disables this communication radio's own power switch.
TrySetReceiveSelectedAsync
public Task<USIResult> TrySetReceiveSelectedAsync(bool selected)TrySetStandbyFrequencyAsync
public Task<USIResult> TrySetStandbyFrequencyAsync(Frequency frequency)Sets the standby frequency from an explicitly unit-tagged value.
TrySetStandbyFrequencyMhzAsync
public Task<USIResult> TrySetStandbyFrequencyMhzAsync(double frequencyMhz)TrySetStoredFrequencyAsync
public Task<USIResult> TrySetStoredFrequencyAsync(int presetNumber, Frequency frequency)Sets a preset from an explicitly unit-tagged frequency.
TrySetStoredFrequencyMhzAsync
public Task<USIResult> TrySetStoredFrequencyMhzAsync(int presetNumber, double frequencyMhz)Sets a stored-frequency preset without changing the active or standby channel. Preset numbers are one-based.
TrySetVolumeRatioAsync
public Task<USIResult> TrySetVolumeRatioAsync(double volumeRatio)Sets the radio audio volume as a simulator-neutral ratio from zero through one.
TrySwapFrequenciesAsync
public Task<USIResult> TrySwapFrequenciesAsync()