i want to change from Stabilize disarmed to Stabilize armed using MAVLINK.
I have to send a MAV_MODE message:
Set the system mode, as defined by enum MAV_MODE. There is no target component id as the mode is by definition for the overall aircraft, not only for one component.
|target_system||uint8_t||The system setting the mode|
|base_mode||uint8_t||The new base mode|
|custom_mode||uint32_t||The new autopilot-specific mode. This field can be ignored by an autopilot.|
So, the base_mode would be 128 because is the value for MAV_MODE_FLAG_SAFETY_ARMED in the enum MAV_MODE_FLAG.
Now, i have to write a value for custom_mode but i don't know which value i should write. Can someone help me please?