Full state vector from IMU

Hi guys,

I've been playing with a 9dof board I was using for some custom control work I had on and was wondering if it's possible to extend the standard attitude [pitch,roll,yaw] vector we get to have current velocities in X,Y,Z.

The obvious solution is to build up a velocity simply by multiplying the time interval by the accel's and summing them over time. This will clearly mount up with lots of error, though, and we need some way of continuously correcting this in the same way a kalman filter does for the attitude.

My thinking is that a well architected flight dynamics controller (the APM in this case) will be an event based system with the primary event consisting of this full state vector, also annotated with GPS state (gps velocity != IMU velocity and need to be kept seperate) so that any consumer nevre has to do anything with the numbers, simply compare where it is to where it wants to be (a delta on each field in the state vector) and pass the errors to the suitable PIDs for control.

With a system like that, loiter would become rock solid without GPS.

Has anyone had a go at that? I'll probably try and code it up over the next days/weeks.

Cheers,

Dave

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I've been looking and reading documents about sensor fusion gps/imu. Your approach about getting velocity has one problem or so I think. Imagine your flying against wind. If you measure velocity with the help of imu sensors, it will give you a "false" reading, since it's struglling against the wind, so that would only work in a non wind environment. One thing would come out good from this. Position hold inside buildings for instance, would be possible.

  • I am working on just the z-accel alt-hold piece right now but I haven't written anything but test code for it, still fleshing out my ideas. I like how your thinking about how loiter should work though, using the GPS to attain a position and the IMU to hold it. I'll let you know when I get something usable, it should be relatively easy to implement into the other axi's...

This reply was deleted.

Activity

DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…