nayan-dev / nayan-devguide

Nayan Development Guide
https://nayan-dev.gitbooks.io/nayan-devguide/
0 stars 1 forks source link

Using RC for Gazebo Simulation #3

Open madhubabuv opened 7 years ago

madhubabuv commented 7 years ago

I have been using Mavros to control drone in Gazebo but the problem is coming with the modes, After take off the drone, when ever I change the mode to POSCTL, ALTHOLD , MANUAL, using ros service ( /mavros/set_mode )the console showing

[ INFO] [1491469726.682624048]: FCU: ARMED by command line [ INFO] [1491469726.882735607]: FCU: Using minimum takeoff altitude: 2.50 m [ INFO] [1491469727.233574392]: FCU: Takeoff detected [ INFO] [1491469732.569563755]: FCU: no RC [ERROR] [1491469732.621364334]: FCU: failsafe mode on [ INFO] [1491469742.704105837]: FCU: Landing detected [ INFO] [1491469745.712888411]: FCU: DISARMED by auto disarm on land [ERROR] [1491469745.762783103]: FCU: failsafe mode off

It working good with all AUTO modes.

What does it mean ? Is the simulator expecting an RC or Joystick to be connected ? If it is, please let me know how can I connect RC to simulator?

bugobliterator commented 7 years ago

@madhudev you can control simulated drones in gazebo either via gamepads or Radio USB simulator both connected via joystick option in QGC, http://qgroundcontrol.org/users/joystick, https://pixhawk.org/users/joystick .