EliotBR
(Eliot)
October 28, 2021, 3:29am
2
Hi @Richard1 ,
I believe you’re after SCALED_IMU2
, as covered here:
Hi @CBW3750 ,
I just tried this and the new broadcast already sends both the SCALED_IMU2 and RAW_IMU messages by default, so you should be able to just do
from pymavlink import mavutil
master = mavutil.mavlink_connection('udpin:0.0.0.0:513')
master.wait_heartbeat()
while True:
msg = master.recv_match(type='SCALED_IMU2', blocking=True).to_dict()
... # do something with 'msg'
without needing to request a new data stream.
Note that your try-except block likely won’t work because wait_h…
SCALED_IMU2
includes linear acceleration and angular velocity - I don’t believe angular acceleration gets measured (since gyroscopes directly measure rotational velocity, not acceleration).