-
Notifications
You must be signed in to change notification settings - Fork 0
03 Real 3D GEO
Using three-geo library and with some changes SITL can fly using real terrain in 3D. It does not matter if SITL make use of terrain data or not in both cases Mavlink3DMap will display the correct relative position.
Real maps can be displayed in 2D as a flat plan or in 3D as a mesh. It only depends on Z-Dimension of scaling. However 3D mesh implies extra complication related to relative and absolute heights. in some cases vehicles is disappeared under terrain due to slight height data mismatch.
Use the following as templates
http://127.0.0.1:9080/index_4wRealMap.html for 2D Plan map.
http://127.0.0.1:9080/index_4w3dReal.html for 3D mesh map.
you need to use js_3dRealBlank.js for more info use http://127.0.0.1:9080/index_4w3dReal.html
IMPORTANT: you need to edit location in:
const terrain = await tgeo.getTerrainRgb