-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing parameters in RTIMULib.ini has no effect on sensor read / poll rate #111
Comments
Further info: The SenseHAT uses the LSM9DS1 chip for acceleration, angular rotation velocity and magnetic field sensor measurements. I have written a Python script to repeatedly read the accelerometer. The maximum rate I am able to obtain is about 50 - 60 Hz, whereas this sensor should have a maximuim sample rate of 1 kHz. I have tried playing around with the relevant values in RTIMULib.ini under the section for LSM9DS1, but I cannot get anything higher than this 50 - 60 Hz. Situation is even worse when reading other sensors as well, with maximum rates being about 20 Hz. |
I also tried playing around with the provided C++ examples, but found the same behaviour. I know for certain that the C++ codes read the RTIMULib.ini file, but again changing the values seems to have no effect. Bizzare. Can anyone help or offer any advice? Like I say it might not be a bug - this might be me misunderstanding something. |
Just as stated in the title, I have tried editing a copy of RTIMULib.ini (which is in my current working directory) and the values of the parameters in this file appear to have no effect on the SenseHAT sensors poll rate.
I suspect rather than this being a bug in the Python SenseHAT library, this might be due to me misunderstanding how to set these parameters.
Some questions:
Does a python script look in the current working directory for the file RTIMULib.ini ?
Does a python script read this file and try to set the values for the SenseHAT sensors using the values contained in this file?
Reason for asking: It is possible that only the C/C++ implementations which use RTIMU read this file. (But seems unlikely?)
The text was updated successfully, but these errors were encountered: