I have had no problems flying my drone on Stabilize mode. Today, however, I tried Alt Hold and Loiter on two situations:
Started flying on Stabilize and switched to Alt Hold or Loiter.
Tried to takeoff directly in Ald Hold or Loiter.
On situation 1, my drone’s motors would lose rotation speed and descend until I switched back to Stabilize or landed.
On situation 2, my drone wouldn’t even takeoff. I would put my throttle stick at 100%, but still wouldn’t be enough for takeoff.
Would anyone have a hint on how to fix this?
I would like to notice I have changed my MAX_VEL_Z parameter to the 20cm/s minimum for safety issues. I don’t think that’s the problem though, given I can perfectly fly it on Stabilize.
I just tried taking off straight from Alt Hold and Loiter modes (as described in situation 2).
What I did: turned the drone on, switched to Alt Hold, armed the motors, increased my throttle stick from 0 to 100% then back to 0%. Then switched to Loiter, incresed my throttle stick from 0 to 100% then back to 0%,
I could see the motors velocity increase a little bit, but not enough for takeoff. The drone never took off.
Please, can you change it back to 250 (default). As there is also PILOT_ACCEL_Z whith the same range (20-500) it may be a source of conflict (guess??). If happy (AltHold and Loiter OK), you should try to reduce both parameters to reduce the vertical speed and acceleration.
PILOT_SPEED_UP: Pilot maximum vertical speed ascending
The maximum vertical ascending velocity the pilot may request in cm/s
Range Increment Units
50 - 500 10 centimeters per second
PILOT_ACCEL_Z: Pilot vertical acceleration
The vertical acceleration used when pilot is controlling the altitude
Range Increment Units
50 - 500 10 centimeters per square second
Here is a video: https://youtu.be/XPizA6tfyos
Video description: I took off on loiter mode. After a few seconds in the air, the drone started to go down until it landed without my wish. At 0:36 you can hear the motors spin faster: that’s me putting my throttle stick at 100%. Given it didn’t take off again, I gave up and disarmed the motors.
Should I be concerned about the “EKF2 IMU0 fround mag anomaly” on the log file?
Which height measures should I check my log for in order to see if it also shows the drone decended?
I also wanted to try and see if the problem was that my throttle mid lever is not set (my log shows that I hover at a 27% throttle on stabilize). But I didn’t find the variable I should change in order to modify the throttle mid, as I have stated here: Throttle mid too low
I was able to takeoff even on Alt Hold and Loiter. The problem with both these flight mode was: They go up, act for a few seconds as they are supposed to, and then start slowly going down, forcing me to keep increasing the throttle stick. I saw the log and noticed that the motors outputs are saturating:
One other thought that came to mind as well was that maybe the problem was with the readings of the sensor. Since my problem is it loses height, then maybe my height sensor (aka barometer) could be giving my system the wrong readings. So I checked the altitude log values:
This graph seemed weird to me because it seems that the readings show the drone kept increasing its height during all flight time. If that’s the case, it’s totally incorrect because during this log I took off and landed several times.
Is my analysis correct? What can I try to adjust so it stays at the height level it is supposed to?