Changeset 8219 for code/branches/tutorial/src
- Timestamp:
- Apr 9, 2011, 9:09:11 PM (14 years ago)
- Location:
- code/branches/tutorial/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc
r8050 r8219 44 44 { 45 45 //TODO: Place your code here: 46 // Make sure to register the object in the factory. 47 // Do some kind of initialisation. 46 // Make sure to register the object and create the factory. 48 47 49 48 // This checks that our creator really is a drone … … 77 76 // - moveFrontBack, moveRightLeft, moveUpDown 78 77 // - rotatePitch, rotateYaw, rotateRoll 78 // You will see, that the AutonomousDrone has two variants for each of these commands, one with a vector as input and one with just a float. Use the one with just the float as input. 79 79 // Apply them to myDrone (e.g. myDrone->rotateYaw(..) ) 80 80 -
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
r8050 r8219 84 84 //TODO: Put your code in here: 85 85 // Make sure you add the variables auxiliaryThrust_ and rotationThrust_ to XMLPort. 86 // Make sure that you also create the get- and set-functions. As you can see, the get- and set-functions for the variable primaryThrust_ has already been specified, so you can get your inspiration from there.87 86 // Variables can be added by the following command 88 87 // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunctionName, getFunctionName, xmlelement, mode); 88 // Also make sure that you also create the get- and set-functions in AutonomousDrone.h. As you can see, the get- and set-functions for the variable primaryThrust_ has already been specified there, so you can get your inspiration from there. 89 89 90 90 91 } -
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h
r8014 r8219 108 108 { this->primaryThrust_ = thrust; } 109 109 //TODO: Place your set-functions here. 110 // - hint: auxiliary thrust, rotation thrust.110 // Hint: auxiliary thrust, rotation thrust. 111 111 112 112 /**
Note: See TracChangeset
for help on using the changeset viewer.