examples.dlife.robot.ardrone
Class ARDroneUpDown

java.lang.Object
  extended by dlife.robot.Controller
      extended by examples.dlife.robot.ardrone.ARDroneUpDown

public class ARDroneUpDown
extends Controller

The ARDrone will will go up and down between 0.5 and 2 meters while displaying the view from its front camera.

To run this example:

  1. Complete the Basic dLife Installation.
  2. Complete the ARDrone Setup.

  3. Launch the dlife.robot.gui.controlcenter
  4. Select dlife.robot.ardrone.ARDrone in the "Robot:" drop down list.
  5. Click the button next to the "Controller:" label.
  6. Navigate to the dLifeDist/examples/dlife/robot/ardrone/ directory.
  7. Choose the ARDroneUpDown.class file.
  8. Connect the computer to the ARDrone's wifi network.
  9. Click the "Start Up" button. The ARDrone will take-off.
  10. Click "Run". The ARDrone will begin to go up and down between 0.5 and 2 meters.

The source code for this class is contained in the file:

Version:
Mar 5, 2012
Author:
Grant Braught, Dickinson College

Constructor Summary
ARDroneUpDown()
           
 
Method Summary
 void shutDown()
          This method is invoked when the Shut Down button in the ControlCenter is clicked.
 void startUp(Robot robot)
          This method is invoked automatically when the Start Up button in the ContolCenter is clicked.
 void step()
          Cause the drone to go up and down between 0.5 and 2 meters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARDroneUpDown

public ARDroneUpDown()
Method Detail

startUp

public void startUp(Robot robot)
Description copied from class: dlife.robot.Controller
This method is invoked automatically when the Start Up button in the ContolCenter is clicked. This is typically where Sensors and Effectors are created and added to the Robot.

Specified by:
startUp in class Controller
Parameters:
robot - the Robot that this Controller will be controlling.

step

public void step()
Cause the drone to go up and down between 0.5 and 2 meters.

Specified by:
step in class Controller

shutDown

public void shutDown()
Description copied from class: dlife.robot.Controller
This method is invoked when the Shut Down button in the ControlCenter is clicked. The default implementation of this method is empty.

Overrides:
shutDown in class Controller