
Comment by ionut on July 11, 2010 at 12:05am
Comment by Hari on November 25, 2010 at 4:30am
Comment by Jeroen van de Mortel on March 14, 2011 at 11:42am Hi Bill,
I building my own quadrocopter based on a dsPIC, I have flown with a complementary filter but it is not hover stable. So I want to try the DCM filter, I copied the code from the Arducopter project in to my C file. It does do something but it is far from stable.
I have been able to fly with a Kp=1 and Ki=0. Indoor it is flyable but outside not because of the wind. Sow i did some research and Aeroquad uses a Kp=0.0005 and Ki=0.00000012 with the same sensors that I have (ITG-3200, BMA180). But I can't get it stable I have tried alot of settings, with Kp=0.5 and Ki=0.0005 the dirft is away but not flyable due alot of overshoot.
I can't find the problem, my sensor data is all floating point with deg/sec and G's then I convert deg/sec to rad/sec before they go thru the DCM filter.
Do you have any tips to solve my problem ?
Thanks
Jeroen,
I am working on a similar project and also on a dsPIC platform. As a first step I made sure that the attitude data coming from my implementation of the DCM algorithm is stable under a broad range of conditions (that I managed to emulate :)). However having stable attitude data is just half of the problem - the second half is how to translate it into motor control signals. This also requires implementing some PID controller to convert attitude “error” into the motor control signals.
Either one of those can attribute to the instability of the flight.
So, what coefficients Kp and Ki are you talking about – those in the DCM algorithm or those in the motor control PID?
Regards,
--Alex.
Comment by Jeroen van de Mortel on March 15, 2011 at 12:09am I am talking about the Kp and Ki of the DCM, my PID controlloop for controlling the attitude is working fine (with complementary filter). But I can't get reliable data from the DCM.
Do you have some code availble ?
Comment by Hamish on March 15, 2011 at 6:50pm
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.1288 members
24 members
78 members
51 members
682 members
© 2013 Created by Chris Anderson.
Powered by

You need to be a member of DIY Drones to add comments!
Join DIY Drones