Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 30, 2009, 1:21:07 PM (15 years ago)
Author:
dafrick
Message:

Removed the code, the PPS students have to insert.

File:
1 edited

Legend:

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

    r5833 r5841  
    4343        // - make sure to register the object in the factory
    4444        // - do any kind of initialisation
    45         RegisterObject(DroneController);
    4645       
    4746        // this checks that our creator really is a drone
     
    6564        // Place your code here:
    6665        // - steering commands
    67         static float totaltime = 0;
    68         totaltime += dt;
    6966        Drone *myDrone = static_cast<Drone*>(this->getControllableEntity());
    70         if(totaltime<100)
    71         {
    72             myDrone->moveFrontBack( -sqrt(dt) );
    73             myDrone->rotatePitch(-dt);
    74         }
     67        // you can use the following commands for steering
     68        // - moveFrontBack, moveRightLeft, moveUpDown
     69        // - rotatePitch, rotateYaw, rotateRoll
     70        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
     71
    7572    }
    7673}
Note: See TracChangeset for help on using the changeset viewer.