mavlink / MAVSDK-Java

MAVSDK client for Java.
76 stars 44 forks source link

Getting "UNSUPPORTED" error when uploading mission to ArduPilot Sim (2.1.0 SDK) #185

Open rayw-dronesense opened 1 month ago

rayw-dronesense commented 1 month ago

Environment

Repro

        val item = Mission.MissionItem(40.52,-80.02, 100.0f, 2.0f, false, 0.0f, 0f, Mission.MissionItem.CameraAction.NONE, 1.0f, 0.0, 1.0f, 0.0f, 0.0f, Mission.MissionItem.VehicleAction.NONE)
        val plan = MissionPlan(mutableListOf(item))
        mavLinkSystem.mission.uploadMission(plan).andThen(mavLinkSystem.mission.startMission()).subscribe()
2024-10-01 12:48:33.576 29356-29469 Mavsdk                  com.example.mav            D  Falling back to gimbal protocol v1
2024-10-01 12:48:33.732 29356-29458 DsLog                   com.example.mav            D  
    io.mavsdk.mission.Mission$MissionException: UNSUPPORTED: Unsupported
        at io.mavsdk.mission.Mission$1.onNext(Mission.java:659)
        at io.mavsdk.mission.Mission$1.onNext(Mission.java:652)
        at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:468)
        at io.grpc.internal.DelayedClientCall$DelayedListener.onMessage(DelayedClientCall.java:473)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInternal(ClientCallImpl.java:667)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:654)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)