M30T,KMZ文件中给的是海爬高度,选择相对高度时,没有减去起飞点的高度。以前V4版,是我们用代码去计算减去起飞点...

Completed

Comments

3 comments

  • DJI Developer Support
    如果你们现在获取到的高度信息是海拔高度信息,应该是可以设置wpml:executeHeightMode为椭球高直接使用海拔高度。具体还是要结合pilot 2的航线效果。
    0
    Comment actions Permalink
  • liulei2

    v4怎么获取起飞点的地面高度,只有在地面上才能获取地面高度吗,怎么判断飞机在地面上?

    0
    Comment actions Permalink
  • DJI Developer Support
    FlightControllerState.getTakeoffLocationAltitude可以获取到起飞点的海拔高度或者通过ABSOLUTE_GPS_ALTITUDE获取,但是这个高度会存在一定误差。如果使用RTK可以获取到更加准确的高度:getTakeOffAltitude或者getMobileStationAltitude
    0
    Comment actions Permalink

Please sign in to leave a comment.