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

Unable to control the drone with MavSDK-Java Manual Control Plugin #193

Open
Ba0Nguyen opened this issue Dec 3, 2024 · 3 comments
Open

Comments

@Ba0Nguyen
Copy link

Ba0Nguyen commented Dec 3, 2024

Ardupilot v4.6 (latest SITL)
MavSDK 2.0.1
SITL starting command: sim_vehicle.py -v Copter --console --map --out=IP:14540

Hi, I am unable to control the drone in Ardupilot SITL using the MavSDK-Java ManualControl Plugin, do you have any tips for this problem?

`val completable = mavSdkDataWrapper.manualControlWrapper.move(x, y, z, r)

           completable?.subscribe({
                Log.d("MotionEvent", "Move Success")
            },{ e ->
                Log.d("MotionEvent", "Error move: ${e.message}")
            })

`

I'm creating mavsdk server with systemId 245 and compId 190
mavSdkServer.run("IP:14540", 0, 245, 190)

I read another thread that it is solved with systemID 245, I tried that but it still not working and I am not able to control my drone in SITL.

@Ba0Nguyen
Copy link
Author

Ba0Nguyen commented Dec 3, 2024

I was able to receive success results but the drone is still not moving. Tried both Position Hold and Loiter mode.

@julianoes
Copy link
Contributor

Regarding the system ID, you can also change the sysid ArduPilot listens on using a parameter. I'm not sure why it wouldn't move though.

@Ba0Nguyen
Copy link
Author

Ba0Nguyen commented Dec 3, 2024

Do you think SITL might have the wrong set up where it is not receiving manual control commands from my joysticks?
If a get a result success from using the move() function from the Manual Control Plugin then MavSDK should forward the command successfully I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants