dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
282 stars 146 forks source link

If the MSDK sample app is registered as 'Auto start application selection', Megaphone does not work. #155

Closed chano1025 closed 1 year ago

chano1025 commented 1 year ago

If I register the DJI Pilot 2 as a startup app, the DJI Pliot 2 will automatically launch when I turn on the remote controller. And I close the DJI Pilot 2 and run the MSDK app, the megaphone will work.

However, when I register the MSDK app as a startup app, Megaphone does not work. And I close the MSDK app and run it again, it works.

The megaphone is successfully mounted.

Aircraft : DJI mavic 3T Aircraft Version : 07.01.1003 Remote Controller Version : 02.01.0003 MSDK App Version : 5.5.0, 1065

Screenshot_20230907_165506

Screenshot_20230907_163318

Thank you.

dji-lyt commented 1 year ago

image The position on the image is used to set the location of the megaphone. You can set the location of the megaphone once before using it, and the interface is setMegaphoneIndex.

chano1025 commented 1 year ago

Thanks for your help. Is there any other way other than setting the megaphone position manually? Is there an API to get the location where the megaphone is mounted?

dji-dev commented 1 year ago

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

Currently, the megaphone does not have such an interface. However, it is relatively easy to confirm the installation position for aircraft with only one expansion port. For aircraft with multiple expansion interfaces, such as the M300, they do not have a megaphone produced by DJI. Therefore, you can use the PayloadBasicInfoListener to obtain payload information to determine if it is a megaphone .

°°°