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

Function wrap_2PI

libraries/AP_Math/AP_Math.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257ftype wrap_2PI(const ftype radian)
258{
259 ftype res = fmodF(radian, M_2PI);
260 if (res < 0) {
261 res += M_2PI;
262 }
263 return res;
264}
265
266template <typename T>
267T constrain_value_line(const T amt, const T low, const T high, uint32_t line)

Callers 12

send_target_anglesMethod · 0.85
update_waveMethod · 0.85
align_yawMethod · 0.85
wrap_PIFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
calc_headingMethod · 0.85
guided_set_yaw_stateMethod · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68