andycruce Posted March 6, 2017 at 07:59 PM Share Posted March 6, 2017 at 07:59 PM I have been looking at the code from the github reference that combines the imu and baro data to provide a more accurate and stable altitude estimate. The comments say it is a complementary filter. However, I can't reconcile the code with a complementary filter that consists of a high and low pass filter in parallel. I'd like to be able to contact the person who generated the code to try to understand what he did. Is that possible? Also, I'm still looking for someone who has fused the GPS and IMU sensors to provide more accurate and stable horizontal position information. Thanks, Andy Cruce Andy Cruce Quote Link to comment Share on other sites More sharing options...
borg Posted March 7, 2017 at 08:02 AM Share Posted March 7, 2017 at 08:02 AM I wrote the Python code, but as it says in the code, the actual filter algorithm comes from here: http://www.varesano.net/blog/fabio/complementary-filtering-high-res-barometer-and-accelerometer-reliable-altitude-estimation Quote Link to comment Share on other sites More sharing options...
andycruce Posted March 12, 2017 at 01:41 PM Author Share Posted March 12, 2017 at 01:41 PM I must be missing something. I checked the URL you listed and the only description of code I found was to subtract gravity from an accelerometer output. The IMU 2 brick does this automatically when it provides linear accelerations. Where did you find any discussion of the complementary filter code? Quote Link to comment Share on other sites More sharing options...
borg Posted March 13, 2017 at 08:26 AM Share Posted March 13, 2017 at 08:26 AM If you go to the FreeIMU library, click on the download link und open the file libraries/FreeIMU/FreeIMU.cpp, you can find the code in line 570ff. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.