good morning,
I try get & set the channel of Ocusync, with no success. Can somebody explain how to do it correctly?
error: java.lang.RuntimeException: Method: OcuSyncLink not found in: dji.sdk.airlink.AirLink
I try get & set the channel of Ocusync, with no success. Can somebody explain how to do it correctly?
error: java.lang.RuntimeException: Method: OcuSyncLink not found in: dji.sdk.airlink.AirLink
B4X:
Dim jo As JavaObject = aircraft
Dim airlink As JavaObject = jo.RunMethod("getAirLink", Null)
...
If airlink.RunMethod("isOcuSyncLinkSupported", Null) = True Then
'this is Ocusync
If airlink.RunMethod("getOcuSyncLink", Null) <> Null Then
'do something
Dim jo As JavaObject = ????????
Dim OcuSyncLink As JavaObject = jo.RunMethod("OcuSyncLink", Null)
Dim channel As JavaObject = OcuSyncLink.RunMethod("getChannelNumber", Null)
Log(channel)'object
End If
End If
Last edited: