MAVSDK-Swift
MAVSDK-Swift copied to clipboard
Shell commands
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)