Vehicle Attitude
Read vehicle_odometry uORB topic and obtain attitude measurements
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Sensor Blocks
Description
The Vehicle Attitude block reads the vehicle_odometry uORB topic and outputs the attitude measurements from the Pixhawk hardware. The block outputs the vehicle attitude in both roll, pitch, and yaw, and quaternion (NED) form.
On each simulation step, the block checks if a new message is available on the vehicle_odometry topic. If a new message is available, the block retrieves the message and outputs it, and the timestamp is updated. If a new message is not available, the block outputs the last updated uORB message and the timestamp is not updated. If a message has not been received since the start of the simulation, the outputs are zeroes.
During Normal mode simulation, the block outputs zeroes.
During Connected I/O simulation, this block reads data from the peripherals of the hardware.
Ports
Output
Parameters
Version History
Introduced in R2018b