-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
PX4 in SITL #2647
Comments
Are you running the latest AirSim master? If not, then try with that, several issues with PX4 have been fixed very recently |
Do you mean run the command |
git fetch origin |
You might be running into the problem discussed in #2583 |
It's for SITL, and I don't use joystics, I don't have any remote controle. I want to controle just through executing codes, at least for now. |
Just to check if the current latest master is being used, could you put the last commit id Also, did you run |
The heap corruption in AirSim was fixed with this PR #2634, can you make sure you have those bits installed ? I built this fix into these binaries, and I've tested those binaries with PX4 v1.11.0-beta1: I also see in your screen shot where it talks about lighting needs to be rebuilt, so I wonder if Unreal is still compiling shaders in the background, which could create some timing problems... My pre-compiled binaries will not have that problem. This shows a python script flying the above AirSim Neighborhood using PX4 SITL v1.11.0-beta1: |
@rajat2004 When I run |
@lovettchris Thanks, I'll test these binary. |
@bys1123 Hi, does it work for you ? |
#2649 |
Ok, thank you for the link. |
@lovettchris Ok. I tried to run with Blocks or Neighborhoood, that @bys1123 sent me. But I still have those issues, and I con't understand why. On Thank you for explanation and help. Something is wrong with the GPS, but I defined them in Or running PX4 in SITL rearly requires to connect and exterior device ? Or is there a parameter that is missing, perhaps : LPE_ALT. Because I have just noticed that are indicated parameters LPE_LAT (for latitude), LPE_LON (for longitude), but not altitude. Thank you for explanation and help. |
|
@bys1123 Ok. If I find something, I will tell you. |
I'm facing similar issues, are there any updates? |
Note that there are 2 PX4 messages you should be looking for:
The first one does not mean it is ready to fly. The second one means AirSIm can fly, and in AirSim you should see an additional message saying "Got a home GPS location". AirSim cannot fly until this happens. Sometimes this second message takes a while depending on PX4. You can also try setting the following using the PX4 console window just in case:
just paste that block into PX4 console window and hit enter. The AirSim settings.json file should be doing this but just in case it isn't, succeeding in passing those settings to PX4, doing it manually should also help. |
Please try our new version which has many updates for px4. |
Hi.
I am trying to set PX4 in SITL mode.
The commands :
git checkout v1.10.1
andgit checkout v1.10.2
.So I tried with
git checkout v1.11.0-beta1
and I arrived to :So after I modified
Settings.json
:But when I run a project,
run-console.bat
returns the following issues :And on UE4 I have the following messages :
What do I have to do else to control the drone using Python ?
Thanks for your help.
The text was updated successfully, but these errors were encountered: