- Timestamp:
- May 15, 2010, 6:12:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/orxonox/controllers/DroneController.cc
r6903 r6905 49 49 assert(dynamic_cast<Drone*>(creator)!=0); 50 50 this->setControllableEntity(dynamic_cast<Drone*>(creator)); 51 this->counter=0; 51 52 } 52 53 … … 63 64 void DroneController::tick(float dt) 64 65 { 66 this->counter++; 65 67 // Place your code here: 66 68 // - steering commands … … 70 72 // - rotatePitch, rotateYaw, rotateRoll 71 73 // - apply the to myDrone (e.g. myDrone->rotateYaw(..) ) 72 73 myDrone-> rotateYaw(0.2);74 myDrone->rotatePitch(0.08); 75 myDrone->moveFrontBack(1); 74 76 75 77 }
Note: See TracChangeset
for help on using the changeset viewer.