IMU传感器融合观众“HelperOrientationViewer”
45视图(30天)
显示旧的评论
你好,
我工作方式throgh低于ahrs滤波融合的例子但我的版本的matlab(2019安装了传感器融合和跟踪工具箱)HelperOrientationViewer似乎难以识别功能。有谁知道如果我需要额外的工具箱来运行这个查看器或为什么这是不工作吗?
很多谢谢!
本
0评论
接受的答案
更多的答案(3)
ljp64
2019年10月17日
大家好,我是这个页面有同样的问题
https://au.mathworks.com/help/万博1manbetxsupportpkg/arduinoio/ug/estimating-orientation-using-inertial-sensor-fusion-and-mpu9250.html
但是,我不能看到一个选项“打开iExample”Matlab。我做错了什么吗?
谢谢你!
劳拉
5个评论
Shaik艾尔沙德萨尔曼
2022年3月21日
我跟着上面的过程但是我gettign这个错误在命令窗口
> > openExample (“shared_fusion_arduinoio / EstimateOrientationUsingInertialSensorFusionAndMPU9250Example”)
错误使用matlab.internal.examples.componentExamplesDir(16行)
无效的论点“shared_fusion_arduinoio”。
错误findExample(18)行
componentExamplesDir = matlab.internal.examples.componentExamplesDir(组件);
错误openExample(30行)
所
2023年2月1日
= arduino (“COM5”、“Uno”,“库”,“I2C”);
fs = 100;
imu = mpu9250 (“SampleRate”, fs, OutputFormat,“矩阵”);
GyroscopeNoiseMPU9250 = 3.0462 e-06;
AccelerometerNoiseMPU9250 = 0.0061;
观众= HelperOrientationViewer(“标题”,{取向的可视化})
保险丝= ahrsfilter (imu, SampleRate”。GyroscopeNoiseMPU9250 SampleRate,‘GyroscopeNoise’,‘AccelerometerNoise’, AccelerometerNoiseMPU9250);
抽搐;
stopTimer = 100;
magReadings = [];
accelReadings = [];
gyroReadings = [];
而(toc < stopTimer)
(accel、陀螺、mag) =阅读(imu);
magReadings = (magReadings;杂志);
accelReadings = [accelReadings; accel];
gyroReadings = (gyroReadings;陀螺);
fuseReadings =保险丝(accel、陀螺、杂志);
j =元素个数(fuseReadings)
查看器(fuseReadings (j));
结束
次要情节(3,2,1);
情节(accelReadings); drawnow
标题(“加速度计读数”);
次要情节(3 2 2);
情节(gyroReadings); drawnow
标题(“陀螺仪数据”);
次要情节(3,1,3);
情节(magReadings); drawnow
标题(“磁强计读数”);
结束
% % magx_min = min (magReadings);
% % magx_max = max (magReadings);
% % magx_correction = (magx_max + magx_min) / 3;