Thank you!
> I had a question about the units of the return values of the functions :
>
> measurementsAcc = imu.accelerometer.rawMeasurements ----- is this in m/s^2?
> measurementsMag = imu.magnetometer.rawMeasurements ---- whats the unit for this?
> measurementsGyro = imu.gyroscope.rawMeasurements ----- is this in radians/second or degrees/second?
Accelerations are in m/s^2, magnetic field is in Tesla. These are the SI
units, and IMUSim uses SI units throughout. Angular rates are in radians/second.
This should have been better documented.
> if I am using an IdealIMU, will the calibrated measurements be equal to
> the calibrated ones?
I take it you mean the calibrated measurements will be equal to the raw
ones. If so, yes.
Martin
Sorry, your messages got held up in the moderation queue.
Yes, the gyro output is still in radians/second. The fact that the
ASF/AMC files have angles in degrees is taken care of at the time of
loading the files, when all the rotations given as Euler angles are
converted to the quaternions used in the SampledBodyModel.
After that everything works the same for any SampledBodyModel, no matter
what sort of format it was generated from.
In fact I've just spotted that the ASF/AMC importer code does not
actually check the angle units before conversion, it actually assumes
*all* ASF/AMC files are in degrees. So keep giving it files in degrees,
it will actually do the wrong thing if you give it files in radians.
I've never seen an ASF/AMC file in radians, but there might be some out
there, so that's a bug which should get fixed at some point.
Martin
> --
> You received this message because you are subscribed to the Google Groups "IMUSim" group.
> To post to this group, send email to imusim...@googlegroups.com.
> To unsubscribe from this group, send email to imusim-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/imusim-users?hl=en.
>