This page shows the coordinate system used in the Crazyflie® 2.x family.
The global coordinate system (X, Y, Z) is a fixed, right-handed frame. Its origin and orientation are established at initialization. How they are established depends on the setup:
The body coordinate system (x, y, z) is right-handed with x-forward, y-left, z-up.
The orientation of the body frame relative to the global frame is described by roll, pitch, and yaw (φ, θ, ψ). Each is a rotation about one body axis:
Applied in the ZYX order: yaw first, then pitch, then roll. The angles are not independent - the same three values applied in a different order describe a different orientation.
Viewed from the origin looking outward along the positive axis:
Note: pitch runs counter-clockwise only in the reported Euler angles - the estimator’s quaternion treats it clockwise, like roll and yaw, so the pitch it encodes has the opposite sign to attitude.pitch; negate the pitch when converting between the two, in either direction.
