Position hold using Accelerometer and Gyro

Post Reply
Neigh
Posts: 13
Joined: Wed Dec 19, 2012 4:04 pm
Location: Moscow, Russia
Contact:

Position hold using Accelerometer and Gyro

Post by Neigh »

Is it possible to lock copter position using accelerometer and gyro ?

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: Position hold using Accelerometer and Gyro

Post by scrat »

Nope.

brm
Posts: 287
Joined: Mon Jun 25, 2012 12:00 pm

Re: Position hold using Accelerometer and Gyro

Post by brm »

???
yes - but not with 8 bit.
you need an fpu.

User avatar
alll
Posts: 220
Joined: Fri Dec 07, 2012 9:53 am

Re: Position hold using Accelerometer and Gyro

Post by alll »

no, because you don't have an "absolute" reference.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Position hold using Accelerometer and Gyro

Post by copterrichie »

Personally, I believe it depends upon how Position hold or Position holding is defined. If we are talking about Autonomous holding, then no. That would require GPS however, if we are talking pilot assisted, then that is a totally difference story.

brm
Posts: 287
Joined: Mon Jun 25, 2012 12:00 pm

Re: Position hold using Accelerometer and Gyro

Post by brm »

alll wrote:no, because you don't have an "absolute" reference.

questionable.
their is no need for absolute referencing.
all is relative.

doing sw only accelerometer integration is like creating a flyaway copter.
the drift needs to be corrected with another source.

BradQuick2
Posts: 6
Joined: Wed Apr 17, 2013 1:03 pm

Re: Position hold using Accelerometer and Gyro

Post by BradQuick2 »

The answer is: No you can't.

You can integrate the acceleration over time to get velocity and integrate the velocity over time to get position. The problem is that there is always error involved and you are integrating the error as well. So after a few seconds, the error grows to an unacceptable level. Since we are double integrating, it's even worse.

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: Position hold using Accelerometer and Gyro

Post by mahowik »

Yes, it's possible ;) but you need to apply corrections from absolute position sensor (gps) to remove drift after integration...
viewtopic.php?f=8&t=2503&start=80

And I can confirm that is also possible to do on atmega chips and I have already done it some months ago, but still need some tuning weight of acc/gps complementary filters...

cycleTime in peak no more than 5-6ms...

Also probably you know that Ardu 3.0 released with their own INS based on acc+gps+baro (works on atmega also, i.e. APM 2.5 board) and according to video demo it works great!

http://www.youtube.com/watch?feature=pl ... yPqHeg2v0Y

felixrising
Posts: 244
Joined: Sat Mar 23, 2013 12:34 am
Location: Australia

Re: Position hold using Accelerometer and Gyro

Post by felixrising »

Dude, that looks awesome! Just wondering when those nice MegaPirateNG guys are going to get porting again.. unless you are saying ArduCopter now supports Mega2560 out of the box?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Position hold using Accelerometer and Gyro

Post by copterrichie »

felixrising wrote:Dude, that looks awesome! Just wondering when those nice MegaPirateNG guys are going to get porting again.. unless you are saying ArduCopter now supports Mega2560 out of the box?


Yes, there has not been an update since Apr 30, 2013, wonder what is happening?

Post Reply