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.
There are some possibilities, but we need a log to help you.
1: When flying in stabilise mode, what is the position of your throttle lever? It should be at neutral position to maintain altitude when you switch to Alt Hold or Loiter.
My throttle lever on stabilize isn’t on neutral, as I have not set it up yet. What I would do is push the lever to neutral as soon as I switched flight modes. I realize this isn’t efficient.
So, yesterday I had a few flights, and I disarmed and armed the motors back again to make sure I had different logs, but apparently I only got one.
Situation 1 - Changing flight mode during flight: Log below shows the throttle output quickly decending after I switched from stabilize to alt hold, on line numbers between 19 and 25.
I’m not sure if this helps much. If there’s anything I should do to enable a better analysis, please let me know. My flight locations are a little limited, but I’ll be flying again tomorrow night.
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.
I just updated it with:
sudo apt-get update && sudo apt-get dist-upgrade
I did notice there are 2 images on the navio2 webpage now: Stretch and Jessie. What are their differences? Should I re-install my disk image, or does the update commands get the job done?
I’ll be flying later tonight and post my results. Thank you for your time! =)
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.
Wiki say:
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: Loiter mode flight attempt - YouTube
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 - #4 by dedezago
Ok, Thanks for all the help! I truly appreciate it!
I’ll re-install the image and redo everything tonight then.
In the mean time, would you mind helping me with this: Throttle mid too low - #4 by dedezago ?
I checked my mid throttle is 27%, but didn’t find the parameter I should change in order to adjust it to the system.
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?
You need soft open foam (like sponge). You do not want to close the vent of the barometer, just protect it from external perturbations like air flow and light.