Merge pull request #2391 from jflyper/bf316-fix-ahi-reversed-movement

[OSD] Fix AHI rolling wrong way
This commit is contained in:
borisbstyle 2017-02-14 22:54:22 +01:00 committed by GitHub
commit 7450816571
1 changed files with 1 additions and 1 deletions

View File

@ -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) {