mavlink protocol problem

Hello All,
I am new with APM, and I try to speak mavlink with pixhawk APM:copter V3.3.3.


I connected a microcontroler on the TELEM2 uart, and I am able to read messages, and to output data streams with the message REQUEST_DATA_STREAM . Now I am trying to output message with the command : MAV_CMD_SET_MESSAGE_INTERVAL.
I used the message for command COMMAND_LONG, but it doesn't work. He sent this data stream :

254    //ID
33    // LEN
7    // counter
1    // sysID
0    //cmpID
76    // message header
0
0
240
65    // parameter 1, interval in us (here 1000, for 1 second)
0
0
122
68    // message id (here 30 for ATTITUDE)
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0    // other paramters unused
255
1    // command ID (here 511 :MAV_CMD_SET_MESSAGE_INTERVAL)
1    // target system    
1    // target component    
2    // confirmation
232    // chk1
218    // chk2

I received for answer message with ID 77, COMMAND_ACK, anad value COMMAND=511, RESULT=3.


-> I am not able to send a mavlink command ! I tried many different IDs, datas, other commands also.
I was never able to get an accepted command feedback.
Can you please help me to send this simple command : MAV_CMD_SET_MESSAGE_INTERVAL ?

thanks

Rémi.

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

Join diydrones

Email me when people reply –

Activity