From f959a91be110bfef7b695116ebcea4a4ff8daae9 Mon Sep 17 00:00:00 2001 From: Fredmcc Date: Sat, 5 Nov 2016 14:55:21 +0100 Subject: [PATCH] Fixed SPort Acc values to display in G --- src/main/telemetry/smartport.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/telemetry/smartport.c b/src/main/telemetry/smartport.c index 0076b35425..ed8c94294f 100644 --- a/src/main/telemetry/smartport.c +++ b/src/main/telemetry/smartport.c @@ -703,18 +703,15 @@ void handleSmartPortTelemetry(void) smartPortHasRequest = 0; break; case FSSP_DATAID_ACCX : - smartPortSendPackage(id, accSmooth[X] / 44); - // unknown input and unknown output unit - // we can only show 00.00 format, another digit won't display right on Taranis - // dividing by roughly 44 will give acceleration in G units + smartPortSendPackage(id, 100 * accSmooth[X] / acc.acc_1G); // Multiply by 100 to show as x.xx g on Taranis smartPortHasRequest = 0; break; case FSSP_DATAID_ACCY : - smartPortSendPackage(id, accSmooth[Y] / 44); + smartPortSendPackage(id, 100 * accSmooth[Y] / acc.acc_1G); smartPortHasRequest = 0; break; case FSSP_DATAID_ACCZ : - smartPortSendPackage(id, accSmooth[Z] / 44); + smartPortSendPackage(id, 100 * accSmooth[Z] / acc.acc_1G); smartPortHasRequest = 0; break; case FSSP_DATAID_T1 :