Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell commands #171

Open
nab0y4enko opened this issue Aug 11, 2020 · 3 comments
Open

Shell commands #171

nab0y4enko opened this issue Aug 11, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@nab0y4enko
Copy link

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)
@JonasVautherin
Copy link
Collaborator

Are you running against PX4 running on NuttX? Shell doesn't work with SITL...

@nab0y4enko
Copy link
Author

@JonasVautherin Thanks for help. Yeah, I known about simulation.
jMAVSim 2020-08-12 12-45-26

But we also have been testing on Tarot X6 + Herelink RC.

Our development stopped at this point and no one can provide us description/example of simple command we could use with MAVSDK-Swift.

@JonasVautherin
Copy link
Collaborator

We have an example in MAVSDK-C++, it would be nice if you could adapt it to Swift! See here.

@julianoes julianoes added the enhancement New feature or request label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants