Repository navigation
无人机位姿 - #3649
Merged
Merged
无人机位姿#3649
Conversation
William4861
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改概述:
修改的详细描述
1.机器学习模型根据传感器数据预测无人机的飞行姿态(俯仰角、横滚角、偏航角),纯模拟即可实现。
核心任务用加速度计、陀螺仪的模拟数据,训练模型预测无人机的实时姿态。技术栈
2.数据生成:用 Python 生成模拟传感器数据(加入噪声更贴近真实场景),格式为 [加速度x, 加速度y, 加速度z, 陀螺仪x, 陀螺仪y, 陀螺仪z] → [俯仰角, 横滚角, 偏航角]。
3.模型选择:优先用 线性回归 / 随机森林(简单易解释),进阶可尝试 LSTM/GRU(处理时序数据)。
4.可视化:用 matplotlib 绘制预测姿态与真实姿态的对比曲线,直观验证效果。
经过了什么样的测试?
windows11
Python3
运行效果
动图、视频、截图等

