So here is a little video on how to calibrate the INSGPS, and how to get it work for either indoor or outdoor use.
Note: currently selecting indoor mode where I did doesn't work. Use the UAVObject browser and change it under HomeLocation.Indoors.
INSGPS demo video
Started by peabody124, Sep 06 2010 09:50 PM
5 replies to this topic
#1
Posted 06 September 2010 - 09:50 PM
#2
Posted 18 September 2010 - 09:19 AM
I've done the calibration, but does not see the model view tracking the AHRS as I expected. If I pitch nose up, it then banks instead.
Upon further investigation I saw that X and Y accelerometer data seem to get swapped around between raw data and and filtered data...not sure if this even relevant to what I see.
See attached screen dump of scope. The first rotation was around the Y-axis, and the second one was around the X-axis.
I was using the simple algorithm with the latest from the repository for pilot and ahrs boards.
Not sure where I've gone wrong...
I had the convention wrong, X is forward, and not Y...still looking into why my model view is not tracking my AHRS...
See attached screen dump of scope. The first rotation was around the Y-axis, and the second one was around the X-axis.
I was using the simple algorithm with the latest from the repository for pilot and ahrs boards.
Not sure where I've gone wrong...
I had the convention wrong, X is forward, and not Y...still looking into why my model view is not tracking my AHRS...
What I cannot create, I do not understand - Richard Feynman
#4
Posted 18 September 2010 - 03:20 PM
Ok few thoughs:
1) plots look fine so accels not issue
2) are you in indoor mode?
3) have you got right gyro gain? -0.014,0.014,-0.014
4) does it move the wrong way then slowly correct?
5) check the values in attitudeActual. Raising arrow up should create positive pitch
1) plots look fine so accels not issue
2) are you in indoor mode?
3) have you got right gyro gain? -0.014,0.014,-0.014
4) does it move the wrong way then slowly correct?
5) check the values in attitudeActual. Raising arrow up should create positive pitch
#5
Posted 18 September 2010 - 08:59 PM
By gyro gain, I take it you meen AHRSCalibration.gyro_scale: No, I had some weird values in there which caused by INSGPS algo to spin around, so I only tried SIMPLE algorithm. Set them to 0, and now it bank, pitch and roll better.
So at least now I have INSGPS sort of working. It does, however, not react as quick as yours...it takes about 12 seconds to settle if I for example bank.
Using insgps, I also get yaw to oscillate 25 deg every 12 sec if I pitch it 25 deg up, or bank 25 deg left.
Using simple, I get it to yaw 25 deg anti clockwise when I pitch it 25 deg up.
Using simple, I get it to yaw 25 deg clockwise when I bank it 25 deg left.
So at least now I have INSGPS sort of working. It does, however, not react as quick as yours...it takes about 12 seconds to settle if I for example bank.
Using insgps, I also get yaw to oscillate 25 deg every 12 sec if I pitch it 25 deg up, or bank 25 deg left.
Using simple, I get it to yaw 25 deg anti clockwise when I pitch it 25 deg up.
Using simple, I get it to yaw 25 deg clockwise when I bank it 25 deg left.
What I cannot create, I do not understand - Richard Feynman
#6
Posted 18 September 2010 - 09:42 PM
So if you have gyro gain 0 it will be slow because the gyros are saying it didn't rotate. In indoor mode I expect to see yaw rotation right now: no mag correction. In simple mode yaw and pitch/roll interact. I know why but that is just crude debugging.


United States

South Africa








