Changeset 9681 for code/branches/tutorial4/src
- Timestamp:
- Sep 30, 2013, 1:18:18 PM (11 years ago)
- Location:
- code/branches/tutorial4/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial4/src/orxonox/controllers/AutonomousDroneController.cc
r9679 r9681 48 48 // This checks that our context really is a drone 49 49 // and saves the pointer to the drone for the controlling commands 50 AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(context); 51 assert(drone != NULL); 52 this->setControllableEntity(drone); 50 /* NOTE from Sandro: This is currently broken */ 51 //AutonomousDrone* drone = dynamic_cast<AutonomousDrone*>(context); 52 //assert(drone != NULL); 53 //this->setControllableEntity(drone); 53 54 } 54 55 … … 70 71 void AutonomousDroneController::tick(float dt) 71 72 { 72 AutonomousDrone *myDrone = static_cast<AutonomousDrone*>(this->getControllableEntity()); 73 /* NOTE: Ugly hack by Sandro to make the tutorial work for the moment. 74 * This will be reverted once the framework update is complete 75 */ 76 //AutonomousDrone *myDrone = static_cast<AutonomousDrone*>(this->getControllableEntity()); 77 ObjectList<AutonomousDrone>::iterator it = ObjectList<AutonomousDrone>::begin(); 78 73 79 //TODO: Place your code here: 74 80 // Steering commands -
code/branches/tutorial4/src/orxonox/worldentities/AutonomousDrone.cc
r9679 r9681 58 58 this->setCollisionType(WorldEntity::Dynamic); 59 59 60 this->myController_ = new AutonomousDroneController(this); // Creates a new controller and passes our this pointer to it as creator.60 //this->myController_ = new AutonomousDroneController(this); // Creates a new controller and passes our this pointer to it as creator. 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.