Commit 06fe2ecd authored by Gus Grubba's avatar Gus Grubba

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
parents ee548470 7a567050
......@@ -147,7 +147,7 @@ void QGCFlightDisplay::_updateAttitude(UASInterface*, double roll, double pitch,
} else {
bool update = false;
float rolldeg = roll * (180.0 / M_PI);
if (fabs(roll - rolldeg) > 2.5) {
if (fabs(roll - rolldeg) > 1.0) {
update = true;
}
_roll = rolldeg;
......@@ -162,7 +162,7 @@ void QGCFlightDisplay::_updateAttitude(UASInterface*, double roll, double pitch,
} else {
bool update = false;
float pitchdeg = pitch * (180.0 / M_PI);
if (fabs(pitch - pitchdeg) > 2.5) {
if (fabs(pitch - pitchdeg) > 1.0) {
update = true;
}
_pitch = pitchdeg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment