DJI drone location - Mobile SDK

可紊 提交于 2019-12-11 17:39:41

问题


I am currently trying to implement a waypoint using DJI's mobile SDK.

However, it is difficult to obtain the position of the drones when connected without simulation.

What should I do?


回答1:


Are you outdoors with a good GPS signal?




回答2:


It is difficult to determine your real question but if the aircraft has a clear view of the sky then it will attach to a number of GPS satellites and report location through the call as shown below. If you don't have a clear view to the sky (technically southern exposure) then the GPS will not be able to establish a connection to the GPS satellites and will not report location. Unlike your cellphone (which can use GPS, cell site and WIFI to locate itself) the aircrafts only have GPS.

                Application.getAircraftInstance().getFlightController().setStateCallback(new FlightControllerState.Callback() {
                    @Override
                    public void onUpdate(FlightControllerState djiFlightControllerCurrentState) {

                    }
                });


来源:https://stackoverflow.com/questions/51318441/dji-drone-location-mobile-sdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!