These limitations are applicable only when you use the sensors with Navigation Toolbox™ and Sensor Fusion and Tracking Toolbox™.
For uninterrupted real-time sensor data reading, do not use other Arduino
functions while you are using the
read function. Calling
other functions clears the stored data when the
property is set to
Oldest, and does not return the oldest
data stored when you read data.
read is not supported if the
TraceOn parameter of the
object is set to
true while creating the IMU sensor object.
false to use the
TraceOn is not supported for
In order to ensure latest data is obtained in
Latest, MATLAB buffers are flushed if the delay between
subsequent read is above a threshold value. For IMU sensors the threshold is 3s
and for GPS this is 120s.
To clear the sensor, both GPS and IMU, use
clear if you are using Navigation Toolbox or Sensor Fusion and Tracking Toolbox. For
>> g= gpdev(a); >> delete(g); >> clear g;