From 1c17e3c1e300f17ddaefbe7872ba9385fa329307 Mon Sep 17 00:00:00 2001 From: Carlos Villalobos Date: Sun, 18 Feb 2024 14:41:03 -0500 Subject: [PATCH] feat: Change data type for some radio navigation variables --- .changeset/odd-bats-hear.md | 5 +++++ .../src/simvars/aircraft-radio-navigation-variables.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/odd-bats-hear.md diff --git a/.changeset/odd-bats-hear.md b/.changeset/odd-bats-hear.md new file mode 100644 index 0000000..46cacc4 --- /dev/null +++ b/.changeset/odd-bats-hear.md @@ -0,0 +1,5 @@ +--- +'@simconnect.js/api': patch +--- + +Change data type for some radio navigation variables diff --git a/packages/api/src/simvars/aircraft-radio-navigation-variables.ts b/packages/api/src/simvars/aircraft-radio-navigation-variables.ts index 931f0d6..5af7582 100644 --- a/packages/api/src/simvars/aircraft-radio-navigation-variables.ts +++ b/packages/api/src/simvars/aircraft-radio-navigation-variables.ts @@ -205,9 +205,9 @@ const ATC = { }; const COM = { - 'COM1 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, BCD16, Int32), - 'COM2 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, BCD16, Int32), - 'COM3 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, BCD16, Int32), + 'COM1 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, MHz, Float64), + 'COM2 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, MHz, Float64), + 'COM3 STORED FREQUENCY': define(`The stored COM 1/2/3 frequency value.`, MHz, Float64), 'COM ACTIVE BEARING:index': define( `Gives the bearing (in degrees) of the active COM station (airport) or a value less than 0 if the station does not belong to an airport. Index is 1, 2 or 3.`, Degrees, @@ -218,7 +218,7 @@ const COM = { Meters, Float64 ), - 'COM ACTIVE FREQUENCY:index': define(`Com frequency. Index is 1, 2 or 3.`, BCD16, Int32), + 'COM ACTIVE FREQUENCY:index': define(`Com frequency. Index is 1, 2 or 3.`, MHz, Float64), 'COM ACTIVE FREQ IDENT:index': define( `The identity of the station that is tuned on the indexed active COM radio. Index is 1, 2, or 3.`, NullUnit,