Skip to content

Commit

Permalink
fix: 修正demo/air780eg_gnsstest的辅助定位坐标单位错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Nov 6, 2024
1 parent b2837d4 commit 50a8428
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/air780eg_gnsstest/uc6228.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ local function do_agps()
lat = tonumber(lat)
lng = tonumber(lng)
log.info("lbsLoc2", lat, lng)
-- 转换单位
local lat_dd,lat_mm = math.modf(lat)
local lng_dd,lng_mm = math.modf(lng)
lat = lat_dd * 100 + lat_mm * 60
lng = lng_dd * 100 + lng_mm * 60
end
elseif wlan then
-- wlan.scan()
Expand Down

0 comments on commit 50a8428

Please sign in to comment.