-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.1.2 Plane cruise mode issue with changing altitude #10435
Comments
Why this issue is closed? I had exactly same issue today, once inav didn't want to go down. |
@pmarkiewicz It was closed in the Configurator repo because it doesn't belong there. It is still open here. Which is the correct place for it to be. |
I believe i had this issue of pitch control being non existent in cruise, yesterday. I tried that model, and another in HITL and all was working just fine. I noticed in HITL that it took around 3-4 seconds before the model went into a shallow climb or dive. I may not have held the pitch stick long enough or at full deflection in the real life flight test. I'll test again, on the model that appeared to fail, when weather is good again. |
A delayed response is normal. @jaroszmm What is your manual virtual speed value in Advanced tuning btw? Best would be if you attach a TXT with a diff. |
INAV_7.1.1_cli_BARP_20240729_124008.txt I understand that there can be a delay in response, but can't understand why this delay is so random. For me it always starts climbing the moment I pull the stick but dive is random. Not sure why I need to wait in some planes for the dive to begin. Especially with full stick deflection. |
A log file would be the easiest way of understanding what it's doing. |
I have one, not sure about gps coordinates going public. |
@breadoven I got the log from him. Will have a look later and share with you later so we can have a look. |
Maybe I also overreact to the behaviour. I'll try to make another flight soon and get another log file if possible. I'm limited by 16MB internal storage on 405WMN on one plane but the second has SD card so it should be easier. |
Yes this is correct. Full stick means the vertical speed is applied based on the setting, so 2m/s at full stick by default. |
@jaroszmm It also helps if you set |
@Jetrell Cruise mode, despite being self leveling, has its pitch angle setpoint controlled by the Altitude controller and roll angle setpoint by the heading control. Raising the angle limits should not make a difference imho. Defaults are 30° up and down that would result in 10m/s on most planes :D |
@b14ckyy I think you missed my point ;-) If roll and pitch bank/tilt angles are set to 30degrees. Full stick deflection only gives you 30 degrees of axis rotation. Which can give the impression that the plane is lacking in control response. e.g. If you go from flying a plane that has its Acro pitch rate set at 100 deg/s.. Then you fly in Cruse mode with its angle limit set to 30 degrees.. It feels restricted, when you have to apply full stick deflection to make Cruse mode start to climb, and that at a rate less than Acro would with only 1/5 of full stick deflection. |
So you mean with much more scale plane should react quicker but will be limited with max climb and dive rates from navigation tab? |
Doesn't really work that way though for altitude adjustment in Auto modes. Altitude control using the pitch stick during Cruise sets the climb rate with the rate proportional to the stick deflection up to the max climb rate set. The pitch limit |
So if we want more rapid response then we would have to increase a lot climb and dive rates but then limit them with max climb and dive angles. So like set 20m/s dive rate but only 15deg limit for the dive angle. |
No don't do that as this will mess with the navigation controller. You can try to ramp up the P and D values of the pos_z controller here: https://github.com/iNavFlight/inav/blob/6.1.1/docs/Settings.md#nav_fw_pos_z_d If you have a clean setup with no pressure changes based on speed, you can ramp up the Baro weight for the altitude controller here: try a value of 0.6 or 0.8 and see how it changes but also watch how it affects level flight stability with these changes. |
@b14ckyy @breadoven To be honest. I hadn't tested it sense back in INAV 3.0.. When increasing those settings used to make it respond better to pitch stick input for climb or dive. The reason I hadn't used it since 3.0. Is because I use an EdgeTX override function that switches out of Cruise to Acro, when either the Pitch or Roll sticks are moved more than a couple of percent either side of center. Then it returns to Cruise 1s after the sticks are released.. This makes changing altitude or heading so much more responsive.. Especially if we get dive bombed by an eagle. @jaroszmm If your interested. This is the logic I use.. Remembering back. The reason I went down this path was because I had other flight controllers/software that would respond to an altitude or heading change in a 3D hold mode, just as fast as Acro does in INAV.. And considering I use Cruise more than any other mode for long range with INAV.. I found its response to stick input in Cruise less than ideal. |
@Jetrell Course Hold already uses manual position adjustment using the Roll stick albeit limited to the Angle bank angle limits I guess. It's only the Yaw stick adjustment that's more limited in response although it's much better after the recent change I made. Altitude adjustment is however not great. I guess it could be possible to have the option to manually adjust this, similar to the Roll stick adjustment in Course hold. But you could also just significantly increase |
True. I was just trying to keep it on the climb/dive topic.. But yeah, roll response works well with a higher set angle limit.
That would help with pitch stick response..
With the changes you made to 8.0, does it now use |
Sorry yes I meant |
Its 2m/s default btw. But recently I also found out that we need a general overhaul of the default fixed wing navigation tune. Heading Controler P-Value is way too low imho. After ramping it up from 75 to 120, at least in HITL with 20kph winds, the path tracking could be reduced to 4 and it was about as precise and as little overshoot as in your latest code change @breadoven Also the vspeed controller I think can be tuned sharper by default on wings. But that needs time and testing and probably not before 8.0. |
3m/s in the current settings doc https://github.com/iNavFlight/inav/blob/master/docs/Settings.md. |
Ah then it was changed in the past months because it was 2m/s in 7.1.2 if you check the branch tags. |
@b14ckyy That's one is interesting.. I run up to 110 on planes without a compass. While planes with a compass start having issues when the I have my planes set with a minimum of 6m/s climb rate. With a few set to 10.
Full stick deflection may be a bit harsh.. It wouldn't be responding, then it would all of a sudden shoot up or down. |
What about the attitude control mode for multirotor? Where you can switch between atti and cruise. |
I would much rather see the max increased (with smooth, predictable scaling across the range) than have an exception where it does X -- except sometimes when it does Y. This particular case would probably be fine - just as a general principle I think it's best to avoid getting in the habit of adding oddball exceptions. Those tend to lead to errors and bugs when someone doesn't think about them at a later point. |
I asked around and it seems this is not my issue only.
Long story short:
IF plane is in cruise mode it randomly reacts to elevator input from radio. If I want to climb I pull the stick and plane goes up normally as it is supposed to.
BUT
If I push the stick down weird things happen. Sometimes it won't dive at all despite pushing the stick fully. Sometimes it takes like 10 seconds to react and dive, and sometimes it does it instantly.
What is worse this can change midflight. So one time I push the stick and plane stays level, other time, during the same flight, plane goes down as it is supposed to.
I already noticed that on two of my planes with 7.1.2, but also I know of at least two people having the same issue. One of them even couldn't climb and only change heading in cruise mode.
If I switch in flight to angle/acro/rth then I can control altitude and pitch normally. This happens only in cruise mode.
Any ideas?
The text was updated successfully, but these errors were encountered: