MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / wrap_PI

Function wrap_PI

libraries/AP_Math/AP_Math.cpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248ftype wrap_PI(const ftype radian)
249{
250 ftype res = wrap_2PI(radian);
251 if (res > M_PI) {
252 res -= M_2PI;
253 }
254 return res;
255}
256
257ftype wrap_2PI(const ftype radian)
258{

Callers 15

getLastYawResetAngleMethod · 0.85
realignYawGPSMethod · 0.85
fuseEulerYawMethod · 0.85
resetQuatStateYawOnlyMethod · 0.85
updateMethod · 0.85
alignYawMethod · 0.85
generate_accelMethod · 0.85
generate_gyroMethod · 0.85
update_steeringMethod · 0.85
get_yawMethod · 0.85

Calls 1

wrap_2PIFunction · 0.85

Tested by 5

TESTFunction · 0.68
TESTFunction · 0.68
test_eulerFunction · 0.68
test_eulerFunction · 0.68
test_wrap_cdFunction · 0.68