Changes between Version 10 and Version 11 of pps/tutorial
- Timestamp:
- Mar 8, 2010, 9:57:38 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pps/tutorial
v10 v11 41 41 {{{ 42 42 #!html 43 <p style="text-align: left; color: red">Note: Do not just copy & paste! Most commands / codelines haveto be edited.</p> Otherwise you'll get tons of compiler errors ;)43 <p style="text-align: left; color: red">Note: Do not just copy & paste! Most commands / codelines need to be edited.</p> Otherwise you'll get tons of compiler errors ;) 44 44 }}} 45 45 We created for you the skeleton of an autonomous drone. You can find the code in the files 'src/orxonox/worldentities/Drone.{cc|h}' and 'src/orxonox/controllers/DroneController.{cc|h}'. … … 58 58 XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode) 59 59 }}} 60 '''Note: You need to add set- and get-functions for auxilaryThrust_ and rotationThrust_ inside the Drone.h file (have a look at {get/set}PrimaryThrust).''' 60 '''Note: You need to add set- and get-functions for auxilaryThrust_ and rotationThrust_ inside the Drone.h file (have a look at {get/set}PrimaryThrust).''' 61 5. now you need to add the Drone to the build system. Open the file src/orxonox/worldentities/CMakeLists.txt and add Drone.cc to the ORXONOX_SRC_FILES. This makes cmake consider the Drone.cc file for further builds. 61 62 62 63 That's it for the Drone class