Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2009, 3:55:11 PM (16 years ago)
Author:
Naaduun
Message:

my Drone steering function

File:
1 copied

Legend:

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

    r2775 r2776  
    3434namespace orxonox
    3535{
     36    CreateFactory(DroneController);
    3637    DroneController::DroneController(BaseObject* creator) : Controller(creator)
    3738    {
     
    3940        // - make sure to register the object in the factory
    4041        // - do any kind of initialisation
    41 
     42        RegisterObject(DroneController);
    4243
    4344
     
    6162        // - rotatePitch, rotateYaw, rotateRoll
    6263        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
     64        double d = rnd();
     65        //COUT(0) << "Drone rotateRoll: " << d << endl;
     66        myDrone->rotateRoll(d);
     67        myDrone->moveFrontBack(sin(d));
    6368
    6469    }
Note: See TracChangeset for help on using the changeset viewer.