Posts: 3
Joined: Tue Aug 20, 2013 1:56 pm

Setting locale destroys RTIMULib.ini

Sun Oct 09, 2016 2:53 pm


Setting a german locale [de_DE] (or other locales, using comma as decimal mark) leads to wrong outputs at least for x-axis acceleration (reading of -inf) and "nan" for pitch, roll and yaw.
It is only possible to get it working again by deleting the RTIMULib.ini file from the home directory (~/.config/sense_hat/) and setting a locale with "." as decimal mark to get a working copy of the file.
The values inside the RTIMULib.ini-file are correctly changed from "." to "," when the german locale is set, however the values seem wrong (only whole numbers and ,00000 as calibration values) and as written above, some readings are not working anymore at all.

Anyone having an idea where to fix this?

User avatar
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: Setting locale destroys RTIMULib.ini

Wed Oct 12, 2016 10:15 am

That sounds like a bug with the RTIMU library that we use, you could report it here https://github.com/richardstechnotes/RTIMULib2

Return to “Astro Pi”