Auterion for Developers
Latest Developer's Guide
Search
K
Links
Comment on page

Inertial Measurements

Refer to the setup guide to set up a libmav connection to the system

Global position / velocity

Vehicle inertial measurement information is communicated with the ATTITUDE message.
while(should_receive_data) {
auto message = connection->receive("ATTITUDE", 2000);
// extract data
float roll = message["roll"]; // rad
float pitch = message["pitch"]; // rad
float yaw = message["yaw"]; // rad
float rollspeed = message["rollspeed"]; // rad/s
float pitchspeed = message["pitchspeed"]; // rad/s
float yawspeed = message["yawspeed"]; // rad/s
}