On the maiden flight of a 30" quadcopter with a 2400W generator from RichenPower I observed a strange behavior. Shortly after take off it started to jump in the air and the generator speeded up and slowed down.
Seeing the voltage graph, I suspect that the generator decelerated when it reached 50 V, which must be its normal behavior to protect the batteries.
My question is if those voltage variations that the generator produces when accelerating and decelerating are what cause the drone to jump in the air, or if it has to do with the vibrations of the generator or I simply have to reduce MOT_THST_HOVER.
Simply looking at this as any other large quad the motor outputs are oscillating badly being driven to some extent by the Pitch Rate controller. I can’t say if there any influence from the generator not having any experience with those but my guess is it’s not a factor.
Not yet. I need a cable GH 1.25 to Dupont 2.54 for data from generator. To switch generator I use a 3-pos switch instead of aux output of FC. I thing is safer to use a physical switch on the drone than a channel of the transmitter.
However, it seemed to us that the vertical movement was much more abrupt. In fact it was not possible to keep it hovering, it was constantly changing altitude.
It does not seem that the vibrations are excessive, visually it gives the feeling that it is not capable of hovering or that the throttle stick is very sensitive.
On this flight the generator has been kept throttled all the time as it should be.
I have reread all tuning documentation and except for the MOT_THST_HOVER parameter which is in 0.2 I don’t see what other change I can make. What would be the procedure to adjust that hover?
Right, no real improvement. Actually the next change you should make is a function of MOT_THST_HOVER so you are on the right track. Before that though set the Roll Rate P&I values same as Pitch. MOT_THST_HOVER is a learned value (with default settings anyway) which is accomplished by hovering in a non-manual Flight Mode. AltHold or Loiter will do. It will take a minute or so for the value to be learned. Then set these based on the saved value:
PSC_ACCZ_I, (2X MOT_THST_HOVER)
PSC_ACCZ_P, (MOT_THST_HOVER)
If you want to cut to chase you can use the CTUN>THo average value at hover. In this log it looks to be ~.46 So perhaps set the above values based on .46 and then do the hover test to learn a more accurate value. Then review the RCoutputs and the Rate outputs for oscillation.
I was asking about the Generator parameters as someone else was posting about issues with it.
It’s too windy to fly an untuned drone, but I’ve done this interesting experiment:
Without starting the generator, only with the backup batteries, I have armed and raised throttle to the point before takeoff. I got this graph:
Based on testing without taking off, I have obtained that configuring INS_HTNCH_FREQ=30 has reduced the oscillation. I have been able to do a little flight to verify, it no longer jumps in the air, although the Throttle control is very sensitive. The CTUN.Tho mean now shows a value of 0.32. I guess setting PSC_ACCZ_P=0.32 and PSC_ACCZ_I=0.64 will improve the ease of hovering in stabilized mode.
There is still oscillation in the outputs:
Update to V4.2.1
Set LOG_BITMASK back to default (176126), log is missing data.
The Notch Filter isn’t doing anything set for Throttle Reference and INS_HNTCH_REF set at 1. This needs to be the Hover Throttle value.
30Hz for a Notch center frequency is generally too low and could compromise RC control. First you need to reduce the motor output oscillation before setting the Notch parameters. Reduce the PSC values based on Tho .32 as you said. Make a Hover flight in AltHold, Stabilize will not update the MOT_THST_HOVER value. Review the log for output oscillation. It looks like this:
If it’s still present after you review the log reduce the ATC_RATE_PIT/RLL P&I values a bit and test again. When the oscillation gone use that log to determine Notch Filter parameters.
You can also look at the Pitch and Roll Rates. Pitch is terrible:
Well, I have been able to do two new tests. Each reducing PID over the previous setting. But with LOG_BIT_MASK=176126 I don’t see the RATE and CTUN messages and I am not able to assess if it has improved.
First PID setting: Log 1
Second PID setting: Log 2
As I have observed that the oscillation occurs as soon as I arm it, I have decided to do the tests on the ground with the drone tethered. First I have removed the anti-vibration mount and the vibrations have decreased as can be seen in the following two images:
The throttle setting is extremely sensitive, at 1250 throttle signal the drone starts to climb. In the flights it has been quite complicated to keep it high and land it without breaking anything, small movements of the stick produced large variations in height. Is there a parameter to smooth the throttle response?
On the other hand, setting P and I so low makes me fear that it is not enough to stabilize it. When I had them at 0.050 I already had a scare at takeoff. Do you think that a value of 0.025 can be dangerous?