FSUIPC Client DLL
.NET interface for FSUIPC
FsFrequencyNAV Struct Reference

A struct representing a NAV frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets. More...

Public Member Functions

ushort ToBCD ()
 Gets the NAV Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets. More...
 
decimal ToDecimal ()
 Gets the NAV Frequency as a decimal type More...
 
override string ToString ()
 Gets the NAV Frequncy as a string. NOTE this is not take into account the user's culture settings. It always formats with a . for the decimal point. More...
 
 FsFrequencyNAV (ushort freqBCD)
 Creates a new NAV Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC. More...
 
 FsFrequencyNAV (string freqString)
 Creates a new NAV Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a , More...
 
 FsFrequencyNAV (decimal freqDecimal)
 Creates a new NAV Frequency from a decimal value More...
 

Detailed Description

A struct representing a NAV frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets.

Constructor & Destructor Documentation

◆ FsFrequencyNAV() [1/3]

FsFrequencyNAV ( ushort  freqBCD)
inline

Creates a new NAV Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC.

Parameters
freqBCDThe NAV Frequency value in BCD format

◆ FsFrequencyNAV() [2/3]

FsFrequencyNAV ( string  freqString)
inline

Creates a new NAV Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a ,

Parameters
freqStringThe NAV Frequency as a string

◆ FsFrequencyNAV() [3/3]

FsFrequencyNAV ( decimal  freqDecimal)
inline

Creates a new NAV Frequency from a decimal value

Parameters
freqDecimalThe NAV Frequency as a decimal

Member Function Documentation

◆ ToBCD()

ushort ToBCD ( )
inline

Gets the NAV Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets.

Returns
A ushort in BCD format that can written to FSUIPC offsets

◆ ToDecimal()

decimal ToDecimal ( )
inline

Gets the NAV Frequency as a decimal type

Returns
The NAV Frequency as a decimal

◆ ToString()

override string ToString ( )
inline

Gets the NAV Frequncy as a string. NOTE this is not take into account the user's culture settings. It always formats with a . for the decimal point.

Returns
A string representing the NAV Frequency.