NVIDIA-AI-IOT / redtail

Perception and AI components for autonomous mobile robotics.
BSD 3-Clause "New" or "Revised" License
1.01k stars 344 forks source link

Cannot control drone in gazebo #67

Closed earcz closed 6 years ago

earcz commented 6 years ago

Hi,

It is impossible to control the drone in Gazebo with X-Box One controller. For example, when i push a little into the button and keeping my finger on it for take off command, the drone takes off continuously. When i release it a little, it just drops. I could not make it to control. I have calibrated the controller from QGroundControl and set the buttons for related movements. However, nothing was changed. Is it about the controller or something else?

Also, excluding calibration and button settings , I cannot switch settings on QGC. For example, I have a few times tried to change my battery cells, It did not apply. There are lots of problem with QGC. What can I do?

Best regards, Ender.

Alexey-Kamenev commented 6 years ago

If you follow the steps from the wiki and everything is configured and running properly, then you should be able to control the drone with the joystick. Once the px4_controller is running, the drone should take off and after reaching target altitude (default is 2m) it should just hover. Now you can control the drone with the joystick. If something is not working - check the logs, outputs of all components and check the wiki one more time.

As for QGC: if you are trying to change parameters for the simulated drone (i.e. in Gazebo) then it may not work as that model does not support all parameters of the real drone. If you are having problems configuring a real drone with QGC then I would recommend checking out QGC manual.

earcz commented 6 years ago

For this project, I have followed wiki strictly. So, as for px4_controller, When i run it, drone never takes off automatically. I am getting the drone armed and flying. Moreover, It cannot be controlled. Either it ascends or drops. Would you recommend me to set up the entire system from the very beginning ? (I ,in fact, did it a few times).

As for QGC, battery is running out in 2 minutes. I think battery settings should be changed. (not for real drone since i am trying to test your system in the simulator)

earcz commented 6 years ago

Solved by rebuilding redtail image and container.