fix: correct rotation order to pitch, yaw, roll for proper orientation

This commit is contained in:
2025-10-02 11:27:29 +02:00
parent 030df64fc1
commit e6987e506f

View File

@@ -447,7 +447,7 @@ fn main() {
unsafe {
let node = hr_pin.get_unchecked_mut();
node.position = glm::vec3(heading.x, 0.0, heading.z);
node.rotation = glm::vec3(heading.roll, heading.pitch, heading.yaw);
node.rotation = glm::vec3(heading.pitch, heading.yaw, heading.roll);
}
}
// Update rotor rotations