-
Notifications
You must be signed in to change notification settings - Fork 197
Basic Usage
We provide a quadrotor GUI which looks as follows:
This gui can be launch as it is done in our basic simulation launch file.
We typically give every quadrotor a unique name and launch all quadrotor related nodes in a quad namespace to avoid interference between different quadrotors.
The quadrotor namespace needs to be set in the gui but should be loaded correctly already if the nodes are launched as in the basic simulation launch file.
If the quad namespace is correct, press the Connect
button to have the gui connecting.
Once the GUI is connected you should see some feedback appearing below.
Below the namespace, you have some buttons available to directly command the quadrotor. Check out the Overview and Concepts page for more details what is happening behind the scenes once you use these buttons.
- The
Arm Bridge
has technically nothing to do with the autopilot but with whatever bridge is used. The bridge is the node that receives control commands from the autopilot and communicates them to a low level flight controller (e.g. SBUS bridge or RPG Rotors Interface). By arming the bridge you allow it to actually send commands to the low level controller. This has to be pressed only once and is a safety feature. - The
Start
button makes the quadrotor take off from the ground if theframe id
of the state estimate is notvision
and makes the quadrotor to go to a hover state if theframe id
isvision
. - The
Force Hover
button forces the autopilot go to a hover state. If necessary, it will first break the quadrotor's velocity down to go smoothly to hover. - The
Land
button makes the quadrotor land and switch off its propellers if its height is close to zero if theframe id
of the state estimate is notvision
. It will make the quadrotor go down "infinitely" if theframe id
isvision
. - The
Off
button switches the motors of at any time it is pressed. So be careful when using this during flight, the quadrotor might drop out of the sky if it is pressed unintentionally. - The
Go To Pose
button makes the autopilot fly the quadrotor fly to the position specified by theX
,Y
, andZ
coordinates with the specifiedHeading
in degrees.
We are using Logitech F710 Gamepads to command quadrotors manually.
For the gamepad to work as intended it requires a joy_node
and a manual_flight_assistant
to be started as it is e.g. the case in our basic simulation launch file.
The gamepad needs to be set to XInput
and then the inputs are mapped as follows: