APM IMU Data via MAVLink Through USB

Hi everybody, I have been trying to utilize this code but it does not seem to be working. I am currently using the c_uart_interface_example code . Specifically the mavlink_serial.cpp. I am just getting the heartbeat messages:

Received message from serial with ID #0 (sys:1|comp:1):
Received message from serial with ID #0 (sys:1|comp:1):
Received message from serial with ID #253 (sys:1|comp:1):
Received message from serial with ID #253 (sys:1|comp:1):
Received message from serial with ID #0 (sys:1|comp:1):
Received message from serial with ID #0 (sys:1|comp:1):
Received message from serial with ID #0 (sys:1|comp:1):
Received message from serial with ID #0 (sys:1|comp:1):

I think the reason its doing that is because there was no request stream. So included the following line:

mavlink_msg_request_data_stream_pack(127, 0, &message, message.sysid, message.compid, MAV_DATA_STREAM_RAW_SENSORS, 1, 1);

It is still not working. I am new to MAVLink and its difficult to decipher whats going on. Any help is highly appreciated.

Thanks!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hello!
            
    Did you solve the problem?

This reply was deleted.

Activity