Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2009, 12:58:08 AM (16 years ago)
Author:
scheusso
Message:

removed the lines that the student have to find out themselves

Location:
code/branches/tutorial/src/orxonox/objects/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/objects/controllers/DroneController.cc

    r2765 r2766  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Oli Scheuss
    2424 *   Co-authors:
    2525 *      ...
     
    4242        RegisterObject(DroneController);
    4343       
     44       
     45       
    4446        // this checks that our creator really is a drone
    4547        // and saves the pointer to the drone for the controlling commands
     
    5658        // Place your code here:
    5759        // - steering commands
    58         static float totaltime = 0;
    59         totaltime += dt;
    6060        Drone *myDrone = static_cast<Drone*>(this->getControllableEntity());
    61         if(totaltime<1)
    62         {
    63             myDrone->moveFrontBack( -sqrt(dt) );
    64             myDrone->rotatePitch(-dt);
    65         }
     61        // you can use the following commands for steering
     62        // - moveFrontBack, moveRightLeft, moveUpDown
     63        // - rotatePitch, rotateYaw, rotateRoll
     64        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
     65       
    6666    }
    6767}
  • code/branches/tutorial/src/orxonox/objects/controllers/DroneController.h

    r2763 r2766  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Oli Scheuss
    2424 *   Co-authors:
    2525 *      ...
Note: See TracChangeset for help on using the changeset viewer.