Merge pull request #6753 from kmitchel/fix_osd_flip_arrow
Fix osd flip arrow
This commit is contained in:
commit
9cec06dfc5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue