RCU Forums - View Single Post - Building a DraganFlyer - need to mix speedcontrollers - HELP
Old 08-11-2005 | 06:15 PM
  #2047  
ADI's Avatar
ADI
Senior Member
 
Joined: Mar 2004
Posts: 820
Likes: 0
Received 0 Likes on 0 Posts
From: Christchurch, NEW ZEALAND
Default RE: Building a DraganFlyer - need to mix speedcontrollers - HELP

ORIGINAL: kwaiweng

Hi ADI, Danvel, TVE, CRAC and the others expert in electronics and programming.

I have encountered some problems for my DF, hope to get some advices from you all.

1. I have successfully implement the PID ........etc
Hi kwaiweng

I'm not 100% sure about #1 problem, but #2 problem is simple:
You must take a reference 'mid' reading of all gyros when motors are stopped - just before takeoff.
That way you have the most up to date 'mid' value readings.
I also take a reading of the pitch, roll and yaw transmitter stick readings at same time, because these are also part of the 'mid' equation.
In my software, if throttle is very close to zero, then I continually read and update all 'mid' values untill throttle is increased again.
Danvel's explanation of his algorithm mentions this too.

Because of temperature drift etc, you will end up with a different 'mid' value for each gyro/stick channel. The idea is to have 3 (pitch, roll & yaw) completely separate algorithms running.

PS: Do you have a website where you can post a video clip of your DF flying ?


Cheers ADI