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

Poor Fixed Wing flight performance in v1.9-alpha (SITL) #11116

Closed
Antiheavy opened this issue Dec 29, 2018 · 11 comments
Closed

Poor Fixed Wing flight performance in v1.9-alpha (SITL) #11116

Antiheavy opened this issue Dec 29, 2018 · 11 comments
Assignees
Labels
bug Fixed Wing 🛩️ Sim: SITL software in the loop simulation

Comments

@Antiheavy
Copy link
Contributor

Antiheavy commented Dec 29, 2018

I was SITL testing on recent Master and v1.9-alpha and noticed some problems with Fixed Wing:

  1. Ground track often is parallel to the mission track instead of on it, sometimes by quite a lot.
  2. Poor loiter entry and circle following (worse than normal)
  3. Tangent and heading requirements for loiter exit is being ignored.
  4. Loiter orbits are off-center from the proper center point
  5. super aggressive pitch response to things like Abort or other abrupt altitude changes.

See this QGC screenshot from SITL:
image

@dagar dagar added bug Fixed Wing 🛩️ Sim: SITL software in the loop simulation labels Jan 4, 2019
@dagar
Copy link
Member

dagar commented Jan 4, 2019

I suspect at least a portion of this can be blamed on the SITL plane model itself.

@Antiheavy
Copy link
Contributor Author

I suspect at least a portion of this can be blamed on the SITL plane model itself.

I'm not so sure. Not not respecting tangent loiter exit and the parallel mission tracks are definitely some logic problem somewhere. You can get it to follow the landing approach parallel several hundred meters to the side depending on which way it crazy-ivan turns out of the loiter.

@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 5, 2019

Might be time to get the foam planes out and see what happens.

@Antiheavy
Copy link
Contributor Author

Might be time to get the foam planes out and see what happens.

I'll try re-installing SITL this weekend and seeing if I can repeat the issues from scratch.

@Antiheavy
Copy link
Contributor Author

Antiheavy commented Jan 5, 2019

Here are two screenshots of identical mission plans in QGC 3.4.4. The left is with PX4 v1.8.0 (trivially modified) and the right is from PX4 Master. I'm not familiar with the SITL changes from POSIX_SITL to the new PX4_SITL, either way the issues listed above seem like bugs or problems:
image

edit:
here are additional screenshots of performance in a Survey. there is different behavior when flying North-South vs East-West
image

@LorenzMeier
Copy link
Member

Thanks, that's super helpful!

@enCHineer
Copy link

enCHineer commented Jan 9, 2019

The line tracking offset is due to the simulated wind. I experienced the same problem with the simulation. In your simulation you have wind in East-direction which will not be corrected by the plane (which means the plane has a constant roll-angle but just enough to fly parallel). I don't know why. But if you change wind direction you will get the offset in the corresponding direction. I found out that in the simulation, PX4 is not able to estimate the wind direction and assumed that this is why in the simulation the offset in path-following persists.

@Antiheavy
Copy link
Contributor Author

I found out that in the simulation, PX4 is not able to estimate the wind direction

interesting. I had wondered if it was wind, but I did not see any indications in the telemetry stream of wind effects. the airspeed and ground speed where typically reporting nearly identical. Maybe I'll try again. I'm only using the default PX4 Fixed Wing Gazebo settings.

Wind would not explain the changes in the loiter entry and exit performance that I am seeing.

@ryanjAA
Copy link
Contributor

ryanjAA commented Jan 11, 2019

If there’s no more news on this by next week or so, I’ll get someone on our flight test team to get a small foam plane (bixler, etc) up in the air and get a log uploaded to look at and we can see actually what’s happening.

@Antiheavy
Copy link
Contributor Author

Antiheavy commented Jan 27, 2019

Here is some more SITL testing showing additional problems with Fixed Wing SITL flight performance. I'd like to break these into separate individual issues if someone can help me determine more specifically what might be going on, it all seems somewhat related...

Additional FW SITL issues:

  • Fixed Wing Landing Abort does not always go to the same loiter altitude above the Land WP.
    edit: maybe this is actually how it always has been? In real life we use a minimum loiter altitude that is always higher than landing approach so maybe we just never notice it...?
  • Fixed Wing Landing Abort turns hard off the landing ground track and takes a wide turn towards the loiter above the Land WP.
    edit: after watching the Analyze widget in QGC and doing a bunch of SITL aborts, I think there is something weird with the FW vehicle model in SITL.... it seems to be doing some strange acrobatics during the abort manuever. Roll command seems correct, but the vehicle response is a bit wild.

image

@Antiheavy
Copy link
Contributor Author

Update:
I finally figured out how to set the Wind Force to 0 in Gazebo SITL (thanks @TSC21 ). @CHschizo is correct, the SITL seems to not correctly deal with the simulated wind.

With wind = 0 the SITL waypoint tracking problems went away. Line following is correct, loiter orbits are centered correctly, and landing aborts track correctly relative straight ahead.

image

So this turns into 2 different issues for which I will open new github issue posts:

  1. there still seems to be a bug with tanget loiter exit
  2. there is some bug(s) with wind in SITL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixed Wing 🛩️ Sim: SITL software in the loop simulation
Projects
None yet
Development

No branches or pull requests

7 participants