After conducting some research and exploring the MAVLink messages documentation, I discovered that setting param1
to 1 enables the custom mode, as indicated in the documentation found here: MAV_MODE_FLAG.
Based on the assistance provided by @vurdlok, here is a brief summary of the solution for this issue:
-
param1
is set to 1 to enable the custom mode. -
param2
is set to 6 to indicate the offboard mode.- Other options for
param2
include:-
param2 = 1
(MANUAL) -
param2 = 2
(ALTCTL) -
param2 = 3
(POSCTL) -
param2 = 4
(AUTO) -
param2 = 5
(ACRO) -
param2 = 6
(OFFBOARD) -
param2 = 7
(STABILIZED) -
param2 = 8
(RATTITUDE)
-
- Other options for
For more information, you can refer to the PX4 Custom Mode file.