MAVSDK-Swift icon indicating copy to clipboard operation
MAVSDK-Swift copied to clipboard

Shell commands

Open nab0y4enko opened this issue 3 years ago • 3 comments

Could you provide example for use shell commands on Shell module?

For example arm/disarm uav using shell. https://mavlink.io/en/messages/common.html#MAV_CMD_COMPONENT_ARM_DISARM

In my test any command success sent without feedback and actions from UAV's side. I've tested next commands: arm, /mavsdk.rpc.action.ActionService/Arm, mavlink arm, commander arm, MAV_CMD_COMPONENT_ARM_DISARM 1 and have no any ideas more.

drone.shell.send(command: "COMMAND").do(
            onError: { error in
                // Newer called
            },
            onCompleted: {
                // Always calls
            }
        )
        .subscribe()
        .disposed(by: disposeBag)

nab0y4enko avatar Aug 11 '20 22:08 nab0y4enko