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
Videos from the ICRA autonomous racing workshop are now available: https://linklab-uva.github.io/icra-autonomous-racing/
Thursday
DIY Robocars via Twitter
RT @SmallpixelCar: Prepared race track for Warm Spring Raceways @wsraceways and looking forward to test my new car at RAMS RC @ramsaicar fa…
Jun 6
DIY Robocars via Twitter
RT @f1tenth: Trying out some nasty blocking maneuvers 🏎️🤖 #f1tenth #autonomousracing https://t.co/nMTstsaogM
Jun 5
DIY Robocars via Twitter
May 27
DIY Robocars via Twitter
RT @araffin2: I will talk this Saturday from 18:00 to 19:00 Paris time for the @diyrobocars community about learning to race in hours using…
May 27
DIY Robocars via Twitter
RT @a1k0n: Luckily the infeasible hairpin problem was easily reproducible in simulation and I could test the fix before bringing the car ba…
May 26
DIY Robocars via Twitter
RT @a1k0n: Another problem was that I was over-constraining the car's allowed accelerations, so it didn't think it could turn as tight as i…
May 26
DIY Robocars via Twitter
RT @a1k0n: Breaking the map up into two halves worked, but I had to be more careful about separating the inner track from outer. There's se…
May 26
DIY Robocars via Twitter
RT @a1k0n: Here's a datalog for my fastest lap of the day. Lap timer is tiny window lower-left. https://t.co/myrlWWrKUY
May 26
DIY Robocars via Twitter
May 26
DIY Robocars via Twitter
RT @a1k0n: Here was my car's POV. Man this track is confusing in first-person! After the incident my camera was all scuffed up and I was af…
May 23
DIY Robocars via Twitter
RT @circuitlaunch: Loved seeing so many familiar (masked) faces at Circuit Launch today for our first in person @diyrobocars in over a year…
May 22
DIY Robocars via Twitter
RT @circuitlaunch: Last but not least, mystery guest @BostonDynamics Spot took to the track @diyrobocars He enjoyed the #brazilianbbq too 😂…
May 22
DIY Robocars via Twitter
RT @SmallpixelCar: Today’s race @circuitlaunch for @diyrobocars with @a1k0n Was busy in the morning and did not get a chance to tune camera…
May 22
DIY Robocars via Twitter
RT @a1k0n: This was epic. My car was barely working this morning, had to make a lot of changes and extremely dirty hacks. Post-race analysi…
May 22
DIY Robocars via Twitter
DIY Robocars @ Circuit Launch, 3/7/2020 https://twitch.tv/diyrobocars
May 22
More…