# UAV-simulation **Repository Path**: sinclairlyt/uav-simulation ## Basic Information - **Project Name**: UAV-simulation - **Description**: 基于Cesium的无人机飞行模拟 - **Primary Language**: NodeJS - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 81 - **Created**: 2022-11-21 - **Last Updated**: 2022-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

UAV-simulation

一个运行在游览器上的基于Cesium的飞行模拟程序。

star github star cesium node cesium

## 1.项目预览: 1.1 无人机飞行时动图: ![7](https://gitee.com/KivenGood/uav-simulation/raw/master/image/7.gif) 1.2 Cesium中自带飞机模型: ![9](https://gitee.com/KivenGood/uav-simulation/raw/master/image/9.gif) ![1](https://gitee.com/KivenGood/uav-simulation/raw/master/image/1.png) ![8](https://gitee.com/KivenGood/uav-simulation/raw/master/image/8.jpg) 1.3 主页启动图片: ![2](https://gitee.com/KivenGood/uav-simulation/raw/master/image/2.png) ![3](https://gitee.com/KivenGood/uav-simulation/raw/master/image/3.png) 1.4 无人机状态显示: ![4](https://gitee.com/KivenGood/uav-simulation/raw/master/image/4.png) ![5](https://gitee.com/KivenGood/uav-simulation/raw/master/image/5.png) ![6](https://gitee.com/KivenGood/uav-simulation/raw/master/image/6.png) ## 2.安装 2.1 安装node.js环境。 2.2 下载离线地图包。 2.3 在sourceConfig.js中配置离线地图地址。 2.4 在cesium-min文件夹下进命令行使用:npm install 下载包,然后使用npm start启动。 项目支持两种模式飞行模拟:1.手动控制,使用plane.html。2.通过读取数据库经纬度自动飞行,使用plane1.html,但需要提前配置好数据库,项目数据库名为sheet2,读取sql下sheet1.sql。受项目保密要求,此数据库无法开源,故只能开源此页面的逻辑。 状态页面除map.heml使用百度地图无法离线外,其余都可离线使用。 ## 3.关于离线地图资源: 支持离线地图,但需要自行下载地图瓦片,瓦片支持精度分级。 这个资源的选择需要多考虑,百度、高德、bing、天地图和谷歌几家各有优劣,不同省份的地图支持各不相同,可能需要多下载几家试试,瓦片首先通过乐天太乐地图下载,然后通过CesiumLab切片成瓦片。 附中国地图和海南地图制作好的地图瓦片: 链接:https://pan.baidu.com/s/1WeTSd5OJbZ9Tx1BDndW-oQ 提取码:uk50 ## 4.关于更换飞机模型: 更换模型,可以通过[sketchfab](https://sketchfab.com/)网站下载免费的gltf文件,也可以自己制作飞机模型。