Android Question implement dji compass get heading with java object

shb777

Active Member
Licensed User
Longtime User
I would like to get the drones heading using the compass getHeading method, but I keep
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.
 

shb777

Active Member
Licensed User
Longtime User
ok thanks. I'll try it today.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…