Merge pull request #6753 from kmitchel/fix_osd_flip_arrow

Fix osd flip arrow
This commit is contained in:
Michael Keller 2018-09-15 19:22:18 +12:00 committed by GitHub
commit 9cec06dfc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -476,8 +476,8 @@ static bool osdDrawSingleElement(uint8_t item)
switch (item) { switch (item) {
case OSD_FLIP_ARROW: case OSD_FLIP_ARROW:
{ {
const int angleR = attitude.values.roll; const int angleR = attitude.values.roll / 10;
const int angleP = attitude.values.pitch; // still gotta update all angleR and angleP pointers. const int angleP = attitude.values.pitch / 10; // still gotta update all angleR and angleP pointers.
if (IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) { if (IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
if (angleP > 0 && ((angleR > 175 && angleR < 180) || (angleR > -180 && angleR < -175))) { if (angleP > 0 && ((angleR > 175 && angleR < 180) || (angleR > -180 && angleR < -175))) {
buff[0] = SYM_ARROW_SOUTH; buff[0] = SYM_ARROW_SOUTH;