SDK 5.8.0 what is the equivalent for flightController.getFlightAssistant().setVisionDetectionStateUpdatedCallback()
已完成I am migrating our app from SDK 4 to SDK 5.8.0 and I am having a hard time finding the equivalent method for this one from sdk 4: flightController.getFlightAssistant().setVisionDetectionStateUpdatedCallback().
I tried setting a listener for FlightAssistantKey.KeyVisionDetectionState but the callback I set is never triggered. I even tried a few enabling methods, such as setting true for FlightAssistantKey.KeyIsVisionAssistedPositioningSupport.
The only documentation I could find regarding this is on this link, but it doesn't point to any specific component.
https://developer.dji.com/doc/mobile-sdk-tutorial/en/basic-introduction/basic-concepts/flight-controller.html#intelligent-flight-assistant
Can anyone on what method to use to get the exact same behavior?
-
You can utilize this interface to retrieve obstacle information.https://developer.dji.com/api-reference-v5/android-api/Components/IPerceptionManager/IPerceptionManager.html#iperceptionmanager_addperceptioninformationlistener_inline
请先登录再写评论。
评论
1 条评论