From e9a9eddabfb48e4809f6e941656cdc50f3710783 Mon Sep 17 00:00:00 2001 From: jflyper Date: Mon, 13 Feb 2017 12:22:16 +0900 Subject: [PATCH] Fix AHI rolling wrong way --- src/main/io/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 9f494ecb5..bf1fd6e38 100755 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -310,7 +310,7 @@ static void osdDrawSingleElement(uint8_t item) pitchAngle = (pitchAngle / 8) - 41; // 41 = 4 * 9 + 5 for (int8_t x = -4; x <= 4; x++) { - int y = (rollAngle * x) / 64; + int y = (-rollAngle * x) / 64; y -= pitchAngle; // y += 41; // == 4 * 9 + 5 if (y >= 0 && y <= 81) {