A struct representing a ADF frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets.
More...
|
ushort | ToBCDMain () |
| Gets the Main part of the ADF Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in the MAIN ADF offsets.
|
|
ushort | ToBCDExtended () |
| Gets the Extended part of the ADF Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in the EXTENDED ADF offsets.
|
|
decimal | ToDecimal () |
| Gets the ADF Frequency as a decimal type.
|
|
override string | ToString () |
| Gets the ADF 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.
|
|
| FsFrequencyADF (ushort freqBCDMain, ushort freqBCDExtended) |
| Creates a new ADF Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC.
|
|
| FsFrequencyADF (string freqString) |
| Creates a new ADF Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a ,.
|
|
| FsFrequencyADF (decimal freqDecimal) |
| Creates a new ADF Frequency from a decimal value.
|
|
A struct representing a ADF frequency used in FlightSim. This can convert between strings, decimal and FSUIPC's BCD format for offsets.
◆ FsFrequencyADF() [1/3]
Creates a new ADF Frequency from the Binary-Coded Decimal (BCD) format used by FSUIPC.
- Parameters
-
freqBCDMain | The Main part of the ADF Frequency value in BCD format |
freqBCDExtended | The Extended part of the ADF Frequency value in BCD format |
◆ FsFrequencyADF() [2/3]
Creates a new ADF Frequency from a string. NOTE The string must be in Invariant Culture. That is, the decimal place must be a . not a ,.
- Parameters
-
freqString | The ADF Frequency as a string |
◆ FsFrequencyADF() [3/3]
Creates a new ADF Frequency from a decimal value.
- Parameters
-
freqDecimal | The ADF Frequency as a decimal |
◆ ToBCDExtended()
Gets the Extended part of the ADF Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in the EXTENDED ADF offsets.
- Returns
- A ushort in BCD format that can written to FSUIPC offsets
◆ ToBCDMain()
Gets the Main part of the ADF Frequency as a Binary-Coded Decimal (BCD). Used by FSUIPC in the MAIN ADF offsets.
- Returns
- A ushort in BCD format that can written to FSUIPC offsets
◆ ToDecimal()
Gets the ADF Frequency as a decimal type.
- Returns
- The ADF Frequency as a decimal
◆ ToString()
override string ToString |
( |
| ) |
|
|
inline |
Gets the ADF 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 ADF Frequency.