microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.35k stars 4.56k forks source link

QGroundControl/DroneShell problem #192

Closed nibill closed 7 years ago

nibill commented 7 years ago

As these problems are totally different than the other, I thought it is ok to open a new issue.

I should mention that I have zero drone experience. No RC used.

Setup: Intel Xeon CPU E5-2620 v4 @2.10GHz 64GB RAM NVIDIA GeForce 1080 Windows Server 2016 Datacenter (I really hope that's not what causes all the problems). Pixhawk PX4 - Firmware 1.5.5

In the QGroundControl-application I have the following error: qgroundcontrol_error2

As for the airframe I have selected the Simulation HIL Quadcopter X as mentioned in the video. My pixhawk is blinking blue and updated to the newest firmware. No logs available in QGroundControl.

When I click play in the engine, it looks like this: engine_error2

The drone shell: droneshell_error

The Pixhawk changes to white/purple-ish blinking, in case that matters. Might be something little, but I really have no clue.

Thanks!

lovettchris commented 7 years ago

yes, I just found a bug in our gps code, it is not sending enough gps messages to PX4, we are working on a fix, stay tuned.

nibill commented 7 years ago

alright, thanks. I'll wait for a fix then.

As for the QGroundControl, do I even have to care about having some red? I only use the simulations...

And should I worry that I don't see a green "Loading settings from..." after I click play in the engine?

Thank you

lovettchris commented 7 years ago

For QGC you need to select this airframe, that will stop it complaining about uncalibrated sensors: image

lovettchris commented 7 years ago

The issue with gps messages is now fixed. Please try again and reopen this issue if you still have a problem, thanks.

nibill commented 7 years ago

Thanks for the quick fix. I've created a whole new project, but now I'm stuck here: droneshellerror2

In the engine it's fine now, I'd say engineerror3

As for QGroundControl, I have selected the correct airframe, but it still complains about Radio and Flight Mode qgroundcontrollerror3

Any ideas`? Thank you

lovettchris commented 7 years ago

So this time I see DroneShell is not getting past "Contacting DroneServer" this is probably because you need to start DroneShell AFTER you start DroneServer (in this case the server is in the Unreal app). Unfortunately, it currently does not have any retry logic, so if it doesn't find the server it gets stuck, that is on the list of things to fix, but for now just restart DroneShell. So this means every time you click Stop/Start in the Unreal Editor you need to restart the DroneShell app.

lovettchris commented 7 years ago

As for the Radio calibration step, if you plan to use a Remote Control radio as I show in this video, then you should calibrate the radio with your pixhawk using QGroundControl. You can also set some handy flight modes using a switch on your radio. But you can use AirSim without a radio and ignore the above red dots in QGC.

nibill commented 7 years ago

I fixed it now. In case anyone having the same/similar problem: I used to have my project split up over two partitions. AirSim.sln was on C:\ while my project was on D:. I guess they couldn't see each other. I created a new project on C:\, and now I can reach the DroneServer. That's all I've changed.