Unverified Commit 01c3b6b7 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6064 from patrickelectric/ground_station_angle_correction

QGC: Solve problem with limitAngleToPMPId when angle is bigger than PI
parents 62671005 9384d9ac
......@@ -61,14 +61,14 @@ double limitAngleToPMPId(double angle)
{
while (angle < -M_PI)
{
angle += M_PI;
angle += 2.0f * M_PI;
}
}
else if (angle > M_PI)
{
while (angle > M_PI)
{
angle -= M_PI;
angle -= 2.0f * M_PI;
}
}
}
......
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