Home > other >  Using large xinjiang SDK connection drones, unmanned aerial vehicles (uavs). Get latitude and longit
Using large xinjiang SDK connection drones, unmanned aerial vehicles (uavs). Get latitude and longit

Time:05-25

Using xinjiang SDK, connection unmanned aircraft, unmanned aerial vehicle (uav) sn code, warp/weft, height, have a big show just a little?? Unmanned aerial vehicle (uav) white, were deployed development

CodePudding user response:

Excuse me, would you please tell me how to solve it, I also met this problem
Public void acquire_gps () {
FlightControllerState djiFlightControllerCurrentState=new FlightControllerState ();
Double alatitude=djiFlightControllerCurrentState. GetAircraftLocation (.) getLatitude ();
Double alongitude=djiFlightControllerCurrentState. GetAircraftLocation (.) getLongitude ();
Double high=djiFlightControllerCurrentState. GetAircraftLocation (.) getAltitude ();
String locate="longitude:" + alatitude + "\ n" + "latitude:" + alongitude + "\ n" + "height:" + high + "\ n";
Toast. MakeText (getApplicationContext (), locate, Toast. LENGTH_LONG), show ();
}
By calling this function for the GPS information, but the returned result is always NAN
  • Related