three三维可视化演示无人机pid控制定高模拟代码
代码语言:html
所属分类:三维
代码描述:three三维可视化演示无人机pid控制定高模拟代码
代码标签: three 三维 可视化 演示 无人机 pid 控制 定高 模拟 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>无人机 PID 控制原理可视化</title>
<style>
body { margin: 0; overflow: hidden; background-color: #111; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #fff; }
/* UI 面板布局 */
#ui-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; justify-content: space-between; padding: 20px; box-sizing: border-box; }
.panel { background: rgba(15, 20, 30, 0.85); border: 1px solid #3498db; border-radius: 8px; padding: 20px; width: 320px; pointer-events: auto; backdrop-filter: blur(5px); box-shadow: 0 0 20px rgba(52, 152, 219, 0.2); display: flex; flex-direction: column; gap: 15px; max-height: 90vh; overflow-y: auto; }
.panel h2 { margin: 0 0 10px 0; font-size: 18px; color: #3498db; border-bottom: 1px solid #3498db; padding-bottom: 5px; }
/* 控制滑块样式 */
.control-group { display: flex; flex-direction: column; gap: 5px; }
.control-header { display: flex; justify-content: space-between; font-weight: bold; font-size: 14px; }
input[type=range] { width: 100%; cursor: pointer; accent-color: #3498db; }
/* 颜色标识 */
.text-p { color: #2ecc71; } /* 绿 */
.text-i { color: #3498db; } /* 蓝 */
.text-d { color: #e74c3c; } /* 红 */
.text-thrust { color: #f1c40f; } /* 黄 */
/* 仪表盘样式 */
.telemetry { font-family: monospace; font-size: 14px; background: #000; padding: 10px; border-radius: 4px; border: 1px solid #333; }
.telemetry div { display: flex; justify-content: space-between; margin-bottom: 4px; }
button { background: #3498db; color: white; border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background 0.2s; }
bu.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0