Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2009, 4:57:45 PM (15 years ago)
Author:
scheusso
Message:

removed lines students will have to reinsert again

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

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/controllers

  • code/branches/tutorial/src/orxonox/controllers/DroneController.cc

    r5765 r5766  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Oli Scheuss
    2424 *   Co-authors:
    2525 *      ...
     
    3939        // - make sure to register the object in the factory
    4040        // - do any kind of initialisation
    41         RegisterObject(DroneController);
     41       
     42       
    4243       
    4344        // this checks that our creator really is a drone
     
    5556        // Place your code here:
    5657        // - steering commands
    57         static float totaltime = 0;
    58         totaltime += dt;
    5958        Drone *myDrone = static_cast<Drone*>(this->getControllableEntity());
    60         if(totaltime<100)
    61         {
    62             myDrone->moveFrontBack( -sqrt(dt) );
    63             myDrone->rotatePitch(-dt);
    64         }
     59        // you can use the following commands for steering
     60        // - moveFrontBack, moveRightLeft, moveUpDown
     61        // - rotatePitch, rotateYaw, rotateRoll
     62        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
     63       
    6564    }
    6665}
Note: See TracChangeset for help on using the changeset viewer.