Browse Source

Merge pull request #1479 from mavlink/pfd_responsiveness

New PFD: Update starting with 1 degree differences immediately to prevent the lag-impression occuring at 2.5 degree notches
QGC4.4
Gus Grubba 10 years ago
parent
commit
06fe2ecda0
  1. 4
      src/ui/flightdisplay/QGCFlightDisplay.cc

4
src/ui/flightdisplay/QGCFlightDisplay.cc

@ -147,7 +147,7 @@ void QGCFlightDisplay::_updateAttitude(UASInterface*, double roll, double pitch,
} else { } else {
bool update = false; bool update = false;
float rolldeg = roll * (180.0 / M_PI); float rolldeg = roll * (180.0 / M_PI);
if (fabs(roll - rolldeg) > 2.5) { if (fabs(roll - rolldeg) > 1.0) {
update = true; update = true;
} }
_roll = rolldeg; _roll = rolldeg;
@ -162,7 +162,7 @@ void QGCFlightDisplay::_updateAttitude(UASInterface*, double roll, double pitch,
} else { } else {
bool update = false; bool update = false;
float pitchdeg = pitch * (180.0 / M_PI); float pitchdeg = pitch * (180.0 / M_PI);
if (fabs(pitch - pitchdeg) > 2.5) { if (fabs(pitch - pitchdeg) > 1.0) {
update = true; update = true;
} }
_pitch = pitchdeg; _pitch = pitchdeg;

Loading…
Cancel
Save