Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

First Autonomous Flight: Hover and Step Response

Marija Popovic edited this page Jun 12, 2017 · 7 revisions

For your first autonomous flight, please follow the procedures exactly as described below.

  1. ssh to your on-board NUC computer and run the launch file:

$roslaunch dji_sdk Onboard_exp_with_zr300_rw_indoor_falcon2.launch

  1. Initialize MSF using rqt_copter.

Checkpoint: The world and state tfs from rviz should be aligned (x-axis pointing forward, y-axis pointing left). This could not be the case due to several reasons, such as inaccurate calibration. If only the yaw (heading) angle is offset, try to change it using the python script ~/indigo_catkin_ws/src/rovio/src/init_rovio_enu.py.

  1. Run the keyboard interface node on your ground station computer:

$ROS_NAMESPACE=yourMavName rosrun keyboard keyboard

  1. Turn on the motor in 'A' mode.

  2. Switch to 'F' mode.

  3. Activate the keyboard input window and type 'b'.

  4. Send a goal pose message using rqt (rqt can be opened by just typing rqt in a terminal). The figure below shows how to add a message publisher and the command mode. For the first test, please set x=0, y=0, z=1 for position and x=0, y=0, z=0, w=1 for orientation.

(Note: To see the image above in higher resolution, right click and select 'View Image'.)

You can change the goal pose, but make sure that the surroundings are free and safe. Your MAV should now be flying at 1m height.

These videos provide demonstrations:

Hovering

Demonstration video

Step response

Demonstration video

⇒ Having completed the step response tutorial, you can now move on to following waypoints.