IMU GPS fusion for interial navigation example error - quadcopter error

5 visualizaciones (últimos 30 días)
I keep getting this error when I run the IMU GPS fusion for interial navigation example and I have not altered the code from the Matlab example webpage (https://www.mathworks.com/help/fusion/ug/imu-and-gps-fusion-for-inertial-navigation.html#IMUandGPSFusionExample-3). Any clue what is going on?
"IMUandGPSFusionforInertialNavigationexample
Error using load
Unable to read file 'LoggedQuadcopter.mattrajData'. No such file or directory.
Error in IMUandGPSFusionforInertialNavigationexample (line 20)
load LoggedQuadcopter.mattrajData;"

Respuestas (3)

William Rose
William Rose el 2 de Abr. de 2021
The code cannot find file LoggedQuadcopter.mattrajData. Make sure you have tthe file and make sure it is in a directory that is on the Matlab path. You can add directories to the current path by clicking on the "Set Path" buttn in the "Environment" section at the top of the main Matlab window. See screenshot below.

Elad Kivelevitch
Elad Kivelevitch el 2 de Abr. de 2021
Michael,
Please use the "open example" button from the documentation or in your MATLAB command prompt type:
>>openExample('shared_positioning/IMUandGPSFusionExample')
And hit enter.
This will provide all the necessary files to run the example in a folder and will cd to that folder.
Examples have data files and other helpers that are not on the general MATLAB path.
  4 comentarios
Michael Barron
Michael Barron el 16 de Abr. de 2021
Thank you for your help and the delay on the reply! I do have a valid license for both and the quadcopter eidt you suggested did work but now I am getting an error with the "HelperScrollingPlotter." Any suggestions?
"IMUandGPSFusionforInertialNavigationexample
Unrecognized function or variable 'HelperScrollingPlotter'.
Error in IMUandGPSFusionforInertialNavigationexample (line 92)
errscope = HelperScrollingPlotter(..."

Iniciar sesión para comentar.


Elad Kivelevitch
Elad Kivelevitch el 16 de Abr. de 2021
Based on the screenshot above, you are not in the example path.
Please use the command:
openExample('shared_positioning/IMUandGPSFusionExample')
This will:
  1. Create a folder for the example on your local drive.
  2. CD to the created folder.
  3. Copy all the necessary files to that folder.
These example files are not on the regular MATLAB path that's why you must be in the same folder that they get copy to or use addpath to add the path to that folder
  2 comentarios
Michael Barron
Michael Barron el 16 de Abr. de 2021
I am now getting a different error. THis is 2020b version and I have the AV toolbox and sensor fusion installed.

Iniciar sesión para comentar.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by