I plan to do what is called a "pull" to made changes to the custom code regarding custom shaped copters.
This change in code would only impacts irregular shaped quads, hexas, and octas when the pilot specifically opts to go custom versus the default (the standard X or +). You have a custom quad if the:
o aspect ratio <> 1 (length is different than width).
o rotors are non symmetric around the
- forward axis (y) going through the center of gravity (CG)
- sideways axis (x) going through the CG
- vertical axis (z) going through the CG
o has a front that is more open for a camera
o deviates from the pictures of a a + or X for the quad, hexa, or octa
o this includes ships described as spider, V, H, U, 88--88, C, etc.
o motor spin direction(s) are different than the pictures
o your CG is pushed somewhere else besides the centroid of the motors.
The advantages of going custom is that the motor factors will be tuned to the coordinate/spin system of your copter versus the coordinate/spin system of the regular copter. They will fly better. Pilots will probably not notice small deviations nor would they see significantly improved flight times. Large deviations might be noticed and provide noticeable changes in flight duration.
Please reply with the motor number (the out-pin number on the APM), coordinates of the motor, and rotation direction of each rotor. For example,
the owner of this copter would reply (motor number, x, y, CCW/CW):
o 1 (400, 200) CCW
o 2 (-250, -200) CCW
o 3 (-400, 200), CW
o 4 (250, -200 CW
[note: no need to tell us your units of measure just so long as you are consistent in measuring; say mm or inches]
Please note:
o The center of gravity of any quad spider or V is not necessarily where the bars cross. The bars typically cross behind the CG. .
o The CG is the center of the coordinates or (0,0) where x=0 and y=0
If you decide to participate by replying, the idea is that you will be able to access your custom motor factors without having to compile firmware. No promises at this point. First we see what's out there. But if you do reply, it's far more likely that your design will be implemented in the library.
If you have any questions or difficulties in doing this, let me know so I can help.
Replies
We need to get the attention of the development team to make the motor factors variables so that they can appear and be edited in mission planner.
But, the good news is as long as you keep the shape rectangular, you can make the adjustments to the roll and pitch P(ID) for the same effect. Normally the two are linked. Change roll P to .15 and pitch P also changes to .15. There is a check box that you can uncheck. Then adjust the two individually. My guess is that you will only have to make the P (not the D or I) different.
The only problem for a quad comes when you make a trapezoidal shape.
Hello,
Is this possible now in their latests releases?
Thanks,
manu
- Under Config/Tuning
- Extended Tuning
- Right below Stabilize Roll P, you will see a check box marked Lock Pitch and Roll Value
Uncheck that box. Then tune as required for your rectangular ship. The Pitch and Roll P values should end up approximately proportional to Mass x Distance^2. If mass is evenly distributed, then simply D^2 from the hub to the rotors. But report back as to what you find out. The working relationships might be different. We are all learning here.
Hi, late reply...
I am still surprised on how difficult it is in APM to tune the Rate-PID's. I am used to do it with KK, Mwii, CleanFlight, and my own gyro-only KK-based PID code.
I am missing the HeadinHold feature (ie the I accumulator) Any suggestions on how to achieve this in APM? I am talking Acro mode, not Stabilize.
This is an old, old, video of a gyro only quad with a "simple" PID loop. So, having a not so square H quad, will not be a problem if PID's are rock solid and at least get the HeadingHold ...
And again, i am amazed how the other flight boards / firmwares does define custom frames / motor mixes so easily ...
http://polakiumengineering.org/custom-multiwii-motor-mixes/
you can count your lucky stars with the APM/Pixhawk
I looked at the link you provided for MultiWee. the factors for the V and U in the link are not explained correct for yaw and thus the math is not correct.
- there will be coupling between yaw and roll if the values described are used.
- the yaw values are not optimal (yaw force does not change with distance)
In addition, the motor mixes are done the same way in the Pixhawk or APM (with the exception that the math is correct). So maybe i'm not understanding the question or issue.
I know, APM does wonderful things, all i want to say that "simple" is not a word for APM/Pixhawk ?...,
Simple ACRO:
Basic gyro-only-error-PID loop, and a big error accumulator will do wonders.
If someone can tell me how to get "heading-hold" done in APM?
like this other example:
Sorry for my confusing questions.
First the basics then the details.
manu
PS:are you sure "yaw force does not change with distance" !? Physics are not always intuitive...
https://youtu.be/cB8GNQuyMPc
really nice test stand. i assume you have studied the flight modes? do any of those do what you want?
On Yaw Forces ... why are they non-intuitive?
The torque from Yaw definitely is not intuitive. one would think that there is a force and thus the farther it is away from the hub the more torque it delivers. Torque = Distance x Force. Right? or for your and my full understanding, since Force = mass x Velocity^2, thus torque = dmV^2
Roll and pitch of a rotor can be simplified to a single point of center of gravity (CG). Thus there is only one force arrow at each rotor. and it points up. The torque on the attitude (levelness) of the ship = dmV^2, where d is the distance from the roll or pitch axis.
If a prop is at the CG of the ship, then the rotational force (torque) on the ship for that centered prop = force x zero (the distance) = 0. Good enough. A prop located at the CG (middle) of the axis will not rotate that axis.
Let's verify that. If I stand on a teeter-totter at the very middle and let gravity apply a force on my mass, the teeter-totter doesn't rotate.
What about Yaw. If a rotor is placed at the very center of the ship and the rotor is powered up, what happens? Of course, the ship spins in the opposite direction of the rotor. But torque = force x distance! If distance = 0 then shouldn't the force = 0? So why does would the ship spin. Something is goofy.
The problem is that the force vector from a prop in the upward direction can be viewed as one arrow pointing up. But the torque from a spinning object like a prop can only be simplified into two masses and thus two force arrows, one on each blade of the prop.
Consider a two bladed prop (this one is easy). As it spins, each blade has the same mass but are continually going in opposite directions. As one blade is moving towards you, the other is moving away. Thus the direction of those forces are always opposite. And that is what makes the object want to spin. Spin the rotor clockwise and the ship will want to spin counter clockwise (for every force there is an opposite and ... ).
d is the distance from the CG of each blade to the CG of the ship. So when the rotor is placed at the CG of the ship and we are talking about an 8" prop, then the d to the center is about 4ish inches. The forces are opposite but on opposite sides of the CG of the ship so the forces add up (neg x neg = +). 4" + 4" = 8".
Now put the motor out from the center of CG 10". The outer force is at 14" and the inner (and opposite) force is at 6". Since both are on the same side of the CG, the forces subtract, giving a net distance of 8". Thus, put the motor where ever you want, and the difference, d, is always 8" in that case.
of course the spinning rotor (not the stator) and casing of the motor itself also contributes to the Yaw forces acting on your ship.
Hope that explains it. I call it a mind !&%$, but it's a four letter word and not nice.
I have build a V octocopter and I have a pixhawk.I can't find any setup in misson planner for it
So guess it is not supported? Or is it any motor mixer in latest version?or any links regarding
setup a v octocopter?
What is the aspect ratio of your copter (width to length)?
please see drawing
-
3
-
4
-
5
-
6
-
7
of 7 Next