Posts: 4
Threads: 2
Joined: Feb 2019
Reputation:
0
Hi all,
I have an LSM303DLHC sensor. As from the file RTIMULib.ini this corresponds to IMUType 4.
The problem I'm facing is that this value gets overwritten every time I click on apply under the pypilot tab to the value 13.
Is anybody having an idea what could be the cause of this behavior and how I can overcome this issue?
Any help welcome.
didi
Posts: 2,225
Threads: 20
Joined: Jun 2016
Reputation:
69
The imu should get autodetected, but maybe it is detected wrong?
Can you stop all pypilot processes, in a terminal type:
$ killlall python... a few times until no more processes running
$ rm RTIMULIB.ini
$ pypilot_boatimu
Try running a few times, make sure it works every time.
paste the output here
Posts: 4
Threads: 2
Joined: Feb 2019
Reputation:
0
Indeed it gets detected wrong. The system detects the sensor as:
IMU Name: L3G4200D + HMC5883L
I did some further tests and hardwired the sensor type to 4 or 8 (according to the RTIMULib.ini they are the same for the LSM303 chip) but did run into the following.
I was able to fix pypilot_boat to use IMUType 4 by editing boatimu.py by disabling auto detection. However, I get the following error in the terminal where I started pypilot_boatimu.
Using settings file RTIMULib.ini
Using fusion algorithm Kalman STATE4
IMU Name: L3GD20 + LSM303DLHC
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
Incorrect L3GD20 id 60
ERROR: IMU Init Failed, no inertial data available
Any ideas?
I tested the sensor with a little python script which gives me good readings with a driver for the LSM303DLHC.
best regards
didi