dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 580 forks source link

[Help] ActiveTrackOperator.startTracking() #1289

Closed huongta157 closed 2 months ago

huongta157 commented 2 months ago
Screenshot 2024-04-11 at 14 50 00 Screenshot 2024-04-11 at 14 51 37

Please help me check it.

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104810:

The reason why the mission cannot be initiated is that the aircraft cannot recognize the target selected. If the aircraft does not enter the AIRCRAFT_FOLLOWING state after you input the selected target, you will need to adjust the box-selected target so that the aircraft can recognize it correctly.

The air 2s supports automatic target recognition function, you can also try using it.

°°°

huongta157 commented 2 months ago

automatic target recognition function

@dji-dev Any document for this function?

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104810:

Currently, we do not have specific documentation explaining it because it is just a part of the intelligent tracking feature. enableAutoSensing is the switch to enable target recognition. In the listener of ActiveTrackOperator, you can obtain TrackingState, where you can get the targets recognized by the aircraft and their positions on the screen.

°°°

huongta157 commented 2 months ago

@dji-dev Thank you for answer, but it still does not work, any other ideas?

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104810:

Based on the error message you provided, the aircraft did not recognize the target you outlined. You will need to re-outline the target you want the aircraft to follow and try initiating the follow mode again. Generally, people, cars, and boats are good targets for follow mode.

The mention of the automatic recognition feature is because once the automatic recognition feature is enabled, the aircraft will show the targets it has recognized, preventing situations where the aircraft fails to recognize a target. However, these recognized targets may not be the ones you are looking for.

Here is a sample code for your reference:https://github.com/DJI-Mobile-SDK-Tutorials/Android-Phantom4Missions

°°°

huongta157 commented 2 months ago

@dji-dev thank you so much

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104810:

I am glad to help you.

°°°