I would like to get the drones heading using the compass getHeading method, but I keep
getting error no getHeading in FlightController.DJICompass.
I've tried several strings in RunMethod but nothing has worked.
getting error no getHeading in FlightController.DJICompass.
B4X:
Dim cc As Object
Dim CompassHeading As Double
cc = FlightControllerInstance.CreateEventFromUI("dji.common.util.CommonCallbacks$CompletionCallback", "callback", Null)
CompassHeading = FlightControllerInstance.RunMethod("DJICompass.getHeading",Array( cc))
I've tried several strings in RunMethod but nothing has worked.