AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

takeoff command is not working

Open akshaysw opened this issue 9 years ago • 5 comments

hello, I am trying to use drone shell to control drone but I am getting following error. what should I do?

RPC Error: rpclib: function 'takeoff' (called with 1 arg(s)) threw an exception. The exception contained this information: TakeOff command rejected by drone. screenshot 15

akshaysw avatar Aug 21 '17 09:08 akshaysw

Looks like PX4 is not allowing you to takeoff. This could be because of many reasons such as RC switches are not down or you have buggy release of PX4.

If you don't want to deal with PX4, we have finally added also added simple_flight which eliminates need to set up PX4. Its also the default. So try out the latest version and use it with default settings (just delete settings.json if you have modified it).

sytelus avatar Aug 29 '17 10:08 sytelus

hello @sytelus i have followed all the step you mentioned above but now i am getting following error, my setting.json is attached below screenshot 19 screenshot 20 screenshot 21

akshaysw avatar Aug 31 '17 11:08 akshaysw

Can you see the value of message parameter? You can just continue or comment out that statement. It's just there to let you know there was some error message from flight controller. Also please make sure to use the latest version. We also have binary release now that you can just simply download and run: See docs for more info.

sytelus avatar Sep 01 '17 13:09 sytelus

hello @sytelus yes binary is working perfectly fine and API's are also working thanks a lot though i could not figure out what was the problem before. can you please tell me how did you make binary?

akshaysw avatar Sep 02 '17 11:09 akshaysw

Binary file is using simple_flight as flight controller instead of PX4. I believe the problem was in PX4 setup before.

sytelus avatar Sep 09 '17 14:09 sytelus