-
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
Problem with GPS home location #3130
Comments
The |
Hey, thanks for answering! |
Hi @Agm2104! Which is the player start's location? |
Hi @jonyMarino! These seem to be the start parameters: |
@Agm2104 , what version of the px4 firmware are you using here? I tried replicating the error you're getting using your settings.json but everything seemed to work fine. |
@ahmed-elsaharti, sorry I didn't add a screenshot of the UE enviroment, I totally forgot. Here it is. I'm using the 1.11 version of PX4. As you say, a confirmation message doesn't appear in the PX4 terminal, but given that i can launch missions with QGC and it's reflected in both UE and PX4, I think they are connected. The problem seems to appear whenever I try to arm the drone via Python scripts, where I get the error mentioned in my first post. |
@Agm2104, I was able to replicate your results when I switched over to PX4 1.11.2. I can also confirm that with this version the Also, at the player location x=5690 y=-100, the vehicle's GPS coordinates will not be those set by OriginGeopoint. The vehicle's GPS position would be offset from OriginGeopoint by 5690 and -100 meters since OriginGeopoint sets the location of the world origin ( see #2588 ) |
@ahmed-elsaharti hi,a nd thank you very much for your help! The problem is that everytime I try to build PX4 with the v1.10.1 I get this error. Any ideas about how to fix it? |
@Agm2104 No worries. https://github.com/PX4/PX4-windows-toolchain/releases/tag/v0.8 |
@ahmed-elsaharti it's exactly as you say, I was using 0.9 build with 1.11. These are the screens I get now. The only thing that still bugs me is that I doesn't seem to get a home set message in the PX4 console, but I'm not entirely sure if that's a problem or not. Again, thank you very much for your help. |
@Agm2104 Glad it worked! |
Seems to be an issue on AirSim side. PX4 confirms that the home position is valid:
And still AirSim throws the error:
Even validated that the mavlink message
and
|
Because of the drone broken before run simulation so you can make the drone can't be broken in the unreal simulator for fix this problem. It in Player start config. Hope this may help you bro. |
Try with the latest version, please |
Right, the latest bits should help especially if you also use the latest settings from here. Notice I added this block: "Sensors":{
"Barometer":{
"SensorType": 1,
"Enabled": true,
"PressureFactorSigma": 0.0001825
}
}, which causes the GPS lock to happen a lot more quickly. The problem because was that PX4 was confused by the random variations in pressure being generated by AirSim barometric pressure simulation. These new sensor settings clamp down on that randomness which makes PX4 a lot happier. |
Closing due to inactivity, please reopen if you are still having this problem with the latest AirSim bits. |
Hi everyone!
I'm having a problem when trying to run the hello_drone script, since I'm getting the following error:
msgpackrpc.error.RPCError: rpclib: function 'armDisarm' (called with 2 arg(s)) threw an exception. The exception contained this information: Vehicle does not have a valid GPS home location.
However I think I have implemented the location in the settings.json correctly
Also, when linking with PX4 I get the following:
Which according with #2647 is a good sign.
However I'm unable to arm the robot and I'm running out of ideas...
What do you think the problem is?
The text was updated successfully, but these errors were encountered: