Hello,
When i write my code in C#, i do it in Microsoft Visual Studio 2022 with a git cloned of Mission Planner.
When i write my code and execute in MVS, everything work.
When i copy past my code into exemple.cs in the plugin folder in my Mission Planner latest version download on the ardupilot website, it doesn’t work.
for example,
Host.comPort.generatePacket(MAVLINK_MSG_ID.COMMAND_LONG, new MAVLink.mavlink_command_long_t(255, 90, 100, 2, 0, 0, 0, 1001, 100, 2, 0), 100, 2, true, false);
is working but :
Host.comPort.generatePacket(MAVLINK_MSG_ID.GIMBAL_MANAGER_SET_MANUAL_CONTROL, new MAVLink.mavlink_gimbal_manager_set_manual_control_t(2, 8 , 16, 1, 12, 100, 2, 0), 100, 2, true, false );
is not working on MP (but work on my MP git cloned).
I don’t understand why, and this problem is recurrent. Last time i tried to use the class gimbalprotocol, but when i put my plugin into the folder plugin in my latest version, functions of this class doesn’t work.
Help me i don’t know how to deal with it.
Thank you very much in advance.