IMU sensor fusion viewer "HelperOrientationViewer"
Mostrar comentarios más antiguos
Hi All,
I am working my way throgh the below ahrs filter fusion example but my version of matlab (2019a with Sensor Fusion and Tracking toolbox installed) seems to be having trouble recognising the function HelperOrientationViewer. Does anyone know if I require an additional toolbox to run this viewer or why this is not working?
Many thanks!
Ben
Respuesta aceptada
Más respuestas (3)
Marco Caruso
el 15 de Abr. de 2019
0 votos
I have the same problem!
2 comentarios
Ans Hafeez
el 9 de Ag. de 2019
Facing same problem.
Getting another following error
Error in openExample (line 24)
metadata = findExample(id);
Gayatri Menon
el 24 de En. de 2020
Hi Ans Hafeez,
Which version of MATLAB are you using? The example is available in R2019a and above releases.
Regards
Gayatri
ljp64
el 17 de Oct. de 2019
0 votos
Hi there, I am having the same problem with this page https://au.mathworks.com/help/supportpkg/arduinoio/ug/estimating-orientation-using-inertial-sensor-fusion-and-mpu9250.html
However, I cannot see an option to 'Open iExample' in Matlab. Am I doing something wrong?
Thank you
Laura
5 comentarios
Gayatri Menon
el 24 de En. de 2020
Hi Laura,
There is "View MATLAB Command" in the rightmost corner. Click on it and you will see the following command
openExample('shared_fusion_arduinoio/EstimateOrientationUsingInertialSensorFusionAndMPU9250Example')
Execute the above in MATLAB.This will add required files in path.
Thank you
Regards
Gayatri
Sameer Aftab
el 6 de Mayo de 2020
when i am trying to open example i got htis why ?
openExample('shared_fusion_arduinoio/EstimateOrientationUsingInertialSensorFusionAndMPU9250Example')
Error using exampleUtils.componentExamplesDir (line 13)
Invalid argument "shared_fusion_arduinoio".
Error in findExample (line 18)
componentExamplesDir = exampleUtils.componentExamplesDir(component);
Error in openExample (line 24)
metadata = findExample(id);
Aleena Rashad Warraich
el 20 de Sept. de 2021
I cannot see view Matlab command option
Gayatri Menon
el 1 de Mzo. de 2022
Can you check for 'Copy command' button in the top right corner of the page.
Thanks
Gayatri
Shaik Arshad Salman
el 21 de Mzo. de 2022
I followed the above procedure but I am gettign this error in command window
>>openExample('shared_fusion_arduinoio/EstimateOrientationUsingInertialSensorFusionAndMPU9250Example')
Error using matlab.internal.examples.componentExamplesDir (line 16)
Invalid argument "shared_fusion_arduinoio".
Error in findExample (line 18)
componentExamplesDir = matlab.internal.examples.componentExamplesDir(component);
Error in openExample (line 30)
yussif
el 1 de Feb. de 2023
0 votos
a = arduino('COM5', 'Uno', 'Libraries', 'I2C');
fs = 100;
imu = mpu9250(a,'SampleRate',fs,'OutputFormat','matrix');
GyroscopeNoiseMPU9250 = 3.0462e-06;
AccelerometerNoiseMPU9250 = 0.0061;
viewer = HelperOrientationViewer('Title',{'Visualization of Orientation'})
FUSE = ahrsfilter('SampleRate',imu.SampleRate, 'GyroscopeNoise',GyroscopeNoiseMPU9250,'AccelerometerNoise',AccelerometerNoiseMPU9250);
tic;
stopTimer = 100;
magReadings = [];
accelReadings = [];
gyroReadings = [];
while(toc<stopTimer)
[accel,gyro,mag] = read(imu);
magReadings = [magReadings;mag];
accelReadings = [accelReadings;accel];
gyroReadings = [gyroReadings;gyro];
fuseReadings = FUSE(accel,gyro,mag);
for j = numel(fuseReadings)
viewer(fuseReadings(j));
end
subplot(3,2,1);
plot(accelReadings);drawnow
title('Accelerometer Readings');
subplot(3,2,2);
plot(gyroReadings);drawnow
title('GyroScope Readings');
subplot(3,1,3);
plot(magReadings);drawnow
title('Magnetometer Readings');
end
%%magx_min = min(magReadings);
%%magx_max = max(magReadings);
%%magx_correction = (magx_max+magx_min)/3;
Categorías
Más información sobre Tracking and Sensor Fusion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!