- Timestamp:
- Mar 3, 2011, 4:18:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
r8011 r8012 36 36 //TODO: Put your code in here: 37 37 // Create the factory for the drone. 38 CreateFactory(AutonomousDrone); 38 39 39 40 /** … … 47 48 //TODO: Put your code in here: 48 49 // Register the drone class to the core. 50 RegisterObject(AutonomousDrone); 49 51 50 52 this->myController_ = NULL; … … 84 86 //TODO: Put your code in here: 85 87 // Make sure you add the variables auxiliaryThrust_ and rotationThrust_ to XMLPort. 86 // Make sure that the set- and get-functions exist.88 // 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 89 // Variables can be added by the following command 88 // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode) 90 // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode); 91 XMLPortParam(AutonomousDrone, "auxiliaryThrust", setAuxiliaryThrust, getAuxiliaryThrust, xmlelement, mode); 92 XMLPortParam(AutonomousDrone, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode); 89 93 90 94 }
Note: See TracChangeset
for help on using the changeset viewer.