Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
248
ftype 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
257
ftype wrap_2PI(const ftype radian)
258
{
Callers
15
getLastYawResetAngle
Method · 0.85
updateLaneSwitchYawResetData
Method · 0.85
realignYawGPS
Method · 0.85
fuseEulerYaw
Method · 0.85
resetQuatStateYawOnly
Method · 0.85
calcQuatAndFieldStates
Method · 0.85
update
Method · 0.85
alignYaw
Method · 0.85
generate_accel
Method · 0.85
generate_gyro
Method · 0.85
update_steering
Method · 0.85
get_yaw
Method · 0.85
Calls
1
wrap_2PI
Function · 0.85
Tested by
5
TEST
Function · 0.68
TEST
Function · 0.68
test_euler
Function · 0.68
test_euler
Function · 0.68
test_wrap_cd
Function · 0.68