Skip to content
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

VTOL: Position and Mission Reproducible Stall. #8941

Closed
tubeme opened this issue Feb 22, 2018 · 6 comments
Closed

VTOL: Position and Mission Reproducible Stall. #8941

tubeme opened this issue Feb 22, 2018 · 6 comments

Comments

@tubeme
Copy link

tubeme commented Feb 22, 2018

Hello Guys,

We stumbled on a problem that we tried everything and cannot solve. Here is the case.

VTOL delta quad 1.6.5 version. We fly this version, because it allows is to fully disable the airspeed. and the FW_ARSP_MODE=2 thus no speed information, so the transition is performed by timing. In 1.7 implementation there is no way we could disable the speed information There is only two options, Air speed and Ground speed for FW_ARSP_MODE.

As far as we understand in this situation in 1.6.5 the TECS are open loop but they still perform extrapolating speed somehow.

There is a problem in our configuration. The VTOL flies perfectly well as an airplane in the manual mode stabilized flight, when we have direct control over the throttle. But in Guided and Autonomous modes the throttle response is totally not adequate. So if we Pitch up the plane, it almost does not provide throttle more than the cruising throttle until we hit the limit for the pitch ~25 degrees. then it kicks with a full throttle.

https://logs.px4.io/plot_app?log=2ead2730-ec02-486d-b30b-336cdd5d5c14

https://logs.px4.io/plot_app?log=51e24d41-7aa1-4dfc-9ef9-7abf3d71fa19

This way we could easily throttle stall the plane every time in Position mode. The problem persists in the missions as well.

If we make a mission with a steep climb we stall the plane immediately.

https://logs.px4.io/plot_app?log=2f7629c6-790e-4b5b-b11f-23f3ee16169e

https://logs.px4.io/plot_app?log=36d43908-6b8a-47fb-bab9-74f9a3c44afe

We cannot understand couple of things.

The TECS is responsible to keep the balance between the energies. So even without speed information from the gyro, acc and altitude the TECS should be able to see the transfer of energies and apply changes to the throttle. Like for example in our case If we pitch up in Position mode (without airspeed and ground speed) it should apply throttle and scale it properly up to the max throttle when we pitch up to the maximum angle. This is pretty simple from pilots perspective even without looking at the speed reading.

In Altitude mode we are not dependent on GPS lock. So in situation when we fly in Altitude mode without GPS Lock and without speed information, how is TECS performing its corrections?

If we move to 1.7+ where there is no other option but to use ground speed as reference then there are some questions we cannot answer. If in 1.7 we fly in Position and there is GPS problem what will be the strategy for the TECS to balance the plane? Or in 1.7 if there is no GPS lock what is the strategy for the TECS in Altitude mode, how the tecs get their speed info or is it needed at all?

We tried each and every possible parameter in the TECS and all the parameters related to the throttle. We passed each and every parameter in the Attitude controller in the L1 and TECS. We cannot solve this lack of thrust during pitch up in Position mode in airplane mode.

May be we are missing something very simple. Please help.

@sanderux
Copy link
Member

You need to set tecs heightrate P and I.
Also, increase your cruise throttle and enable voltage and baro scaling.

@tubeme
Copy link
Author

tubeme commented Feb 22, 2018

Thanks @sanderux There is no I gain for the height rate only P and FF gains.

@sanderux
Copy link
Member

Sorry, FF i mean

@tubeme
Copy link
Author

tubeme commented Mar 9, 2018

@sanderux Really sorry to bother you but you are the only one who could help me. I dont want to open a new issue so I write here.

We cannot find a balance between the P and FF gains.

We use FW_T_HRATE_P = 0.15 to exaggerate the problem. During regular flights we use P = 0.07
PX4 1.6.5
QGC 3.2.5
Without airspeed.
Position, Altitude, Mission mode

With FW_T_HRATE_FF = 0.7 we have a good response in the pitch up, The throttle kicks in early and the VTOL FW is adequate. BUT on pitch down if we hold the pitch down for 3-5 seconds and then center the pitch the plane continues to dive with a pitch down for two seconds before it levels. So very scary thing given we have a higher airspeed due to the descend.

https://logs.px4.io/plot_app?log=9e8c04c1-3553-41bd-9067-de0b41bfad76

From the LOG it is obvious that the throttle is not scaling smooth from 0-max. We noticed that during pith up the throttle goes to 0.8 given we followed your advice to rise the cruise throttle to 0.7

image

100% throttle kicks in if we use full pitch up command (1) If we are at 0.9 pitch up then the max throttle goes to 0.8. We know that the plane can handle the current envelope settings give we use Manual mode and control the throttle.

If we use FW_T_HRATE_FF = 0.2 then we have a perfect response on the pitch down. The moment we release the lever the plane levels and the throttle kicks in in level flight. BUT at a pitch up command we have a disaster. The throttle just does not kick except if we make a full pitch up command (1). So at full pitch up the throttle kicks with a 100% at 0.9 pitch up the throttle just stays at cruising 0.7

https://logs.px4.io/plot_app?log=afa6a688-23fe-4521-ace9-6bf43c380888

image

Using FF = 0.4 in the middle gives terrible performance to both the pitch up and pitch down.

Because it is better to have good response on pith down we decided to use FF=0.2 and then lower the FW_P_LIM_MAX = 10 degrees in order to not allow the plane to stall.

The ratio of the pusher motor is very good so the plane itself can perform very well, we could not understand why this is happening in the auto modes...

Can you please help us understand this TECS mechanism given we do not fly with airspeed sensor.

Thanks a lot in advance, I know that the place is not here for this questions, but in the discuss there is very little going on on the responses.

P.S. I have one week of flights only on trying to balance the P and FF if you need more flights I could give such. There are many stalls as well in mission flights due to this problem.

@sanderux
Copy link
Member

There is work in progress currently to improve TECS behavior for airspeedsensorless
I do not understand why you say 1.7 cannot fly without airspeed sensor. we only removes the "groundspeed" option as it wasnt working anyway, so airspeed-disabled does exactly the same.

@tubeme
Copy link
Author

tubeme commented Mar 14, 2018

The problem was that we were running the 1.7 with the 3.2 qgc so there was a little unclear where the problem was. So now we managed to fly it since 4 days with 1.7.3 with transition etc.

The problem with the hrate is the same... no difference between the 1.6.5 and 1.7.3

I will post this case with a airplane tag and put some thoughts about solution. This is not something we could fix in any way except with the workarround I mentioned. But this remains workarround and not a fix.

Thanks a lot @sanderux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants