Hi everyone,
I would like to send commands to my drone and I tried to do so using the C# MAVLink NuGet with the following code as a test :
MAVLink.MavlinkParse mp = new MAVLink.MavlinkParse();
var buffer = mp.GenerateMAVLinkPacket20(MAVLink.MAVLINK_MSG_ID.COMMAND_INT,
new MAVLink.mavlink_command_int_t()
{
command = 511,
param1 = MAVLink.MAVLINK_MSG_ID.SCALED_IMU.GetHashCode(),
param2 = 100000,
target_system = 0
}, false, 255, 1, -1);
port.Write(buffer, 0, buffer.Length);
The command is a MAV_CMD_SET_MESSAGE_INTERVAL (511) supposed to ask my drone to send me a SCALED_IMU(#26) message at an interval of 1 second (100000 us).
The thing is, even when I send this command multiple times, I do not receive any SCALED_IMU (#26) message in return.
I also tried with the GenerateMAVLinkPacket10 method and with MAVLink.mavlink_command_long_t() instead, but still nothing.
Is there anyone to help me on this ?