-
Notifications
You must be signed in to change notification settings - Fork 10
First Autonomous Flight: Hover and Step Response
For your first autonomous flight, please follow the procedures exactly as described below.
- ssh to your on-board NUC computer and run the launch file:
$roslaunch dji_sdk Onboard_exp_with_zr300_rw_indoor_falcon2.launch
- Initialize MSF using
rqt_copter
.
Checkpoint: The
world
andstate
tfs fromrviz
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
.
- Run the
keyboard
interface node on your ground station computer:
$ROS_NAMESPACE=yourMavName rosrun keyboard keyboard
-
Turn on the motor in 'A' mode.
-
Switch to 'F' mode.
-
Activate the keyboard input window and type 'b'.
-
Send a goal pose message using
rqt
(rqt
can be opened by just typingrqt
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:
⇒ Having completed the step response tutorial, you can now move on to following waypoints.