-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
FIX: fixed-wing airspeed problem in SITL #24452
base: main
Are you sure you want to change the base?
Conversation
Can you remove SENS_EN_ARSPDSIM from all the gz_* models? Also can you validate a couple of the other models? |
My pleasure. I have checked |
Can't takeoff? So this is not working? Is this differential pressure calculation correct? Are you sure the rotation transform is correct? You can re-enable the SimSensor and compare the data to see what might be different.
|
I don't think so. I checkout to the cessna : advanced plane I think the advanced plane model might have been broken. |
Can you rebase on main and try again? I pulled your branch and tested and it worked for me. |
Also since we no longer are using the sensor_airspeed_sim module we don't get to use SIM_ARSPD_FAIL anymore. I'm wondering if we need to add that or not. We probably shouldn't use a param though. @Jaeyoung-Lim @dagar I see the conversation in #21126 Do we want to centralize failure injection for gz sim? Should we use the param until then? |
You need to rebase your changes. Recently I updated all of the models to use a mag from gz rather than the sim_sensor_mag |
I reset the merge and rebase my branch on main again. I still get the same result. Additionally, I don't understand why the two branches I thought git submodule update should bring us to |
Signed-off-by: TigerWuu <[email protected]>
Signed-off-by: TigerWuu <[email protected]>
Signed-off-by: TigerWuu <[email protected]>
Signed-off-by: TigerWuu <[email protected]>
1ddc5c1
to
c1d37b7
Compare
I rebased your branch and pushed. On the default world the advanced_plane works fine, but on the windy world it doesn't get off the ground. Can you check your calculations and make sure things are correct? You should compare the data in the log from this new implementation against the previous one using the SensorAirspeedSim |
Thank you. I have pulled the latest branch c1d37b7. However, I still can't get advanced_plane work on default world. I have checked the commit of gz submodule is on the latest one |
I tested the @ryanjAA would you mind taking a look? I want to merge this PR as it's an improvement but I don't want to break the advanced_plane functionality. Who else can we bring into this discussion who understands planes better than I? AdvancedLiftDrag plugin windy world wind |
@fredmarkus tagging you since I see you were the one who added Can you help with this? |
Took a look. It's friction. There are no wheels on the advanced plane, only the cessna. One sec, I'll fix it. |
Ok - a few solutions depending on what we want. Add friction which I did. That does work but then to can move too freely depending on wind and direction (we should do wheels which wouldnt be too hard). Or Set takeoff airspeed to 15 m/s (instead of min airspeed which is 10 and rotation which is 90% of that which is too low with wind [maybe if we make it a true headwind but creates problems later]) and set rotation airspeed to the same (15). The advanced plane has a much smaller wing area 0.34 vs 0.6) so most likely whats happening is at that AoA with the advanced l/d, you simply aren't making enough lift given the more advanced polars. A couple other unrelated issues though. If you turn up the wind to 10 m/s from due east, it should get up and go. It does but that speed is nowhere near reflected in the wind estimate. The vehicle is moving much faster but the estimate is 1-4 m/s. Let me know and I'll push a param change or friction change. If youre wondering why it works with no wind, it's because it only needs to overcome forward friction and there just seems to be enough (aka no side force either). |
I think adding wheels is an easy obvious first step lol. Also having a headwind seems to make the most sense, since this would reflect a more typical real world scenario. I'll defer the decision to you @ryanjAA since you're the subject matter expert here.
Ah you're saying the wind estimate doesn't reflect the reality of the simulation? |
@TigerWuu You might need to add wind influence to be modeled in the advanced_liftdrag_plugin |
@ryanjAA I would like to clarify that this issue only occurs in advanced planes, right? |
@Jaeyoung-Lim I checked the
|
Solved Problem
Fixes #23756
Reopen from #24437
Solution
Publish the
differential_pressure
inposeInfoCallback
from GZBridge, and removeSENS_EN_AIRSIM
from4004_gz_standard_vtol
.Test coverage
Have tested with
Context
N/A