Hi,
I am trying to send a MAVLink command_long with a command MAV_CMD_GET_MESSAGE_INTERVAL to my pixhawk using dronefleet lib.
I always receive a message ack with a result type “Unsupported”.
I must say that I get the “unsupported” result type with any kind of command using a command_long…
My px4 is set to Mavlink V1.
I receive heartbeat, attitude and vfr_hud datas from the px4, that I can read without any problems.
Here is my code :
(trying to get the interval rate of the Attitude message (#30) )
connection.send(new MavlinkMessage<>(
255, // GCS system id
0, // Component Id (0 if we're a ground control system)
CommandLong.builder()
.targetSystem(1)
.targetComponent(1)
.command(MavCmd.MAV_CMD_GET_MESSAGE_INTERVAL)
.confirmation(0)
.param1(30)
.param2(0)
.param1(0)
.param2(0)
.param1(0)
.param2(0)
.param1(0)
.build()));
What am I doing wrong ? Are the target IDs incorrect? Another problem elsewhere? Do I miss some initialization steps before sending that kind of command to the pixhawk?
Thanks for your help