From 7ad80dad1719465eabdcf73a81edf74ae784f63d Mon Sep 17 00:00:00 2001 From: Hayds_93 Date: Tue, 13 Aug 2024 12:49:40 +1200 Subject: [PATCH] fixed unit error in KW altitude --- src/moduleCommands/oh58d.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/moduleCommands/oh58d.js b/src/moduleCommands/oh58d.js index 81022f8..cbd5aa4 100644 --- a/src/moduleCommands/oh58d.js +++ b/src/moduleCommands/oh58d.js @@ -132,7 +132,8 @@ class oh58d { ), createButtonPress(14, this.#oh58dkeycodes["clear"], this.#delay100), // clear current alt ); - + waypoint.elev = waypoint.elev * 0.3048; // convert feet to meters + for (let i = 0; i < waypoint.elev.length; i++) { // enter in waypoint elevation this.#codesPayload.push(