Glad you got to the point of a test flight. There are a couple things you
want to check to get stable hover.
I did not understand the need for the 8-cell AA battery pack to balance the
heli. That is a lot of weight. The way you want to balance it is so that
it flies properly in manual mode. If this is what it takes, then OK.
I for
So check you balance in manual mode. Get all the trims set for a stable
hover in manual.
Not sure which Tx you are using and which switch, but if you are using the
flight mode switch (3 way) on a Specktrum, each mode has its own trims. So
in this case you need to set the trims for auto mode switch setting to be
the same as manual that you just set.
Initialize the UDB with roll and pitch leveled on the ground.
Now the pitch and roll tilt offsets are acting on a "normal" heli setting.
In a hover you need to apply enough roll to compensate for the sideways
thrust of the tail rotor. This is done in the UDB using the ROLLTILT
defined in options.h. Same is true for pitch, this is a smaller effect due
to the torque generated by the tail rotor. This offset is PITCHTILT. They
are typically 2 and 0.5 degrees respectively, but can vary from heli to
heli.
If you still see the heli tending to the right/left and/or forward/backward
change ROLLTILT and PITCHTILT appropriately. These offsets will only
correct rotations about the x/y axes, not a translation (like wind). I find
it is fine to get it close. once in a hover in auto give it a little trim.
Hope this helps.
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>
Sent: Saturday, August 28, 2010 11:36 AM
Subject: First flight with the UDB in a nitro helicopter
While not critical, it is important to get them close. These offsets go
directly into the DCM calculation so that it's "normal" attitude is gravity
offset by ROLL and PITCHTILT. without them you are always fighting the UDB
to maintain a stable hover.
But perhaps more importantly, it is a bad idea to have a big offset in going
from manual to auto (and later nav). At least for me, when I go from auto
to manual it is usually because there is a problem. The last thing you want
is to compound the problem with a sudden roll or pitch.
You also become sensitive to the boost gain since this multiplies the
difference of you Tx (incuding trims) from the neutral position recorded at
init of the UDB.
So my statement was to get it close, but don't spend 5 minutes getting
everything perfect. And if your mode switch carries its own trims, copy
them to make them the same manual and auto once you have things trimmed up.
You really only do this once since things mostly stay the same from flight
to flight and small changes aren't important.
You might as well get your Tx setup for a 3 position switch since we will
eventually impliment navigation and you will need it.
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>.
Sent: Saturday, August 28, 2010 10:48 PM
Subject: Re: First flight with the UDB in a nitro helicopter
What type of oscillation did you observe? About what axes? Did you change
any of the gains from the distribution files?
The drifting backwards can be due to a number of sources. Where your trims
in manual set to cancel this? If so and the same trims are present in auto
and the heli was level on init and there wasn't a wind blowing it backwards
(a lot of ands), then just adjust PITCHTILT to correct it.
As I note in the documentation, you still need to "fly" the heli even in
stabilized mode since you will never get it perfectly trimmed up and the UDB
only stabilizes rotations not translations, other than the TILT offsets to
compensate for tail rotor thrust and torque. We have been working on code
to do translation stabilization but is limited by the sensors being used.
Something like optical flow could work, but we haven't got there yet.
SERVOSAT limits the range of the output PWMs. You can see the code in
defines.h:
#define SERVORANGE (int) ( SERVOSAT*1000 )
#define SERVOMAX 3000 + SERVORANGE
#define SERVOMIN 3000 - SERVORANGE
So making it less than one will limit the servo throw. Using it to limt
servo binding is the right thing to do (and sounds consistent with your Tx
limits). There are other factors that can produce large outputs including
large gains and boosts. So it would be useful to see your options.h to see
how you have things set up.
Best,
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>
We should do some accel/gryo tests. Do you have OpenLog to record data in
flight?
Best,
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>
Sent: Tuesday, August 31, 2010 3:09 AM
Subject: Re: First flight with the UDB in a nitro helicopter
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>
The UDB coordinate system is marked on the board. X (Pitch) is left, Y
(Roll) is forward, and Z( Altitude) is down. Using the Right Hand Rule, a
positive Pitch rotation is nose down...a psotive Roll is roll right. Both
TILT parameters are positive (in the dist file).
The TILT parameters are offsets to the normal coordinate system...they are
not stability offsets. So the UDB is doing exactly what it is supposed to
be doing.
Not quite. If you are nose heavy and a positive PITCHTILT it would go
forward. You would need a negative PITCHTILT to cancel the forward motion.
Normally PITCHTILT is very small if the heli is well balanced. I find
something like 0.5 deg is all that is needed. I would suggest you set it to
zero, get things tuned up and see which way it wants to move. If it tends
backwards add some positive PITCHTILT until it cancells out. If you are
getting large values, it probably means your CG is off and should be
corrected.
I'm not sure what a Pelican guncase is, but here is a link to the type of
foam a lot of people use to wrap their electronics with. It is what I use
to provide vibration isolation for the UDB...seems to work well.
http://www.hobby-lobby.com/foam_rubber_1_2x8x12_rc_hardware_3764_prd1.htm
I velcro the UDB to the foam. The only direct vibration path is through the
servo cables. Use the flexible type cables and leave some slack between the
frame and the UDB.
When you get telemetry working, I can send you a patch to write the accels
and gyros to the serial port. This is the best diagnostic of vibration
effects on the accels and gyros. Remember that heli vibrations are the core
reason why the original UDB did not work. It is all about vibrations when
you are talking helis.
Best
I see the link I sent is 1/2" foam...I actually use 1/4" but that is mostly
because I have little clearance between the skip plate and the bottom of the
frame.
So just to confirm, this had nothing to do with the UDB?
Wishing you a rapid recovery
John
----- Original Message -----
From: "Marc-X" <marcus...@gmail.com>
To: "UAVHeliBoard" <UAVHel...@googlegroups.com>
Sent: Thursday, September 02, 2010 12:15 PM
Subject: Re: First flight with the UDB in a nitro helicopter