Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2010, 11:27:20 PM (15 years ago)
Author:
rgrieder
Message:

Merged r5841 that removes the student's code from the tutorial.

Location:
code/branches/tutorial
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial

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

    r6483 r6487  
    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.