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

Method angular_difference

libraries/AP_Math/quaternion.cpp:803–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801// angular difference in radians between quaternions
802template <typename T>
803QuaternionT<T> QuaternionT<T>::angular_difference(const QuaternionT<T> &v) const
804{
805 return v.inverse() * *this;
806}
807
808// absolute (e.g. always positive) earth-frame roll-pitch difference (in radians) between this Quaternion and another
809template <typename T>

Callers 2

attitudes_consistentMethod · 0.80
pre_arm_checkMethod · 0.80

Calls 1

inverseMethod · 0.45

Tested by

no test coverage detected