Sensor readings from Bluesim simulation

I am trying to apply the script Run pyMavlink on the companion computer to sensor data from Bluesimualtion , while the comments mentions that the output will contain the (roll, pitch ,yaw, etc… ) values. this is the the output I receive.


any thoughts what’s happening here, thanks in advance.

Hi,

BlueSim runs directly with SITL without mavproxy, in that case, the vehicle will not transmit unnecessary information if not requested, you’ll need to request the messages by yourself, like:

# AHRS2
master.mav.command_long_send(
    master.target_system, master.target_component,
    mavutil.mavlink.MAV_CMD_SET_MESSAGE_INTERVAL, 0,
    mavutil.mavlink.MAVLINK_MSG_ID_AHRS2, 1e6, 0, 0, 0, 0, 0)

#ATTITUDE
master.mav.command_long_send(
    master.target_system, master.target_component,
    mavutil.mavlink.MAV_CMD_SET_MESSAGE_INTERVAL, 0,
    mavutil.mavlink.MAVLINK_MSG_ID_ATTITUDE, 1e6, 0, 0, 0, 0, 0)

I am know sure I get what you are trying to say here, would you mind explaining it more or mentioning reference that I could read to print out the forward, yaw, roll, etc… paraments.

Hi,

Please check our new example Request message interval in
https://www.ardusub.com/developers/pymavlink.html

Thank you for help, everything working fine. if you please can u mention a reference to understand what’s ATTITUDE and AHRS2 are ?

Hi,

Check the Further Reading material related to MAVLink.

1 Like

This topic was automatically closed after 6 days. New replies are no longer allowed.