[Orxonox-commit 3362] r8050 - in code/branches/tutorial/src/orxonox: controllers worldentities

dafrick at orxonox.net dafrick at orxonox.net
Wed Mar 9 11:18:07 CET 2011


Author: dafrick
Date: 2011-03-09 11:18:06 +0100 (Wed, 09 Mar 2011)
New Revision: 8050

Modified:
   code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc
   code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
Log:

Adding some documentation.


Modified: code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc
===================================================================
--- code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc	2011-03-08 22:07:35 UTC (rev 8049)
+++ code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc	2011-03-09 10:18:06 UTC (rev 8050)
@@ -73,10 +73,10 @@
         AutonomousDrone *myDrone = static_cast<AutonomousDrone*>(this->getControllableEntity());
         //TODO: Place your code here:
         // Steering commands
-        // You can use the following commands for steering
+        // You can use the commands provided by the AutonomousDrone to steer it:
         // - moveFrontBack, moveRightLeft, moveUpDown
         // - rotatePitch, rotateYaw, rotateRoll
-        // Apply the to myDrone (e.g. myDrone->rotateYaw(..) )
+        // Apply them to myDrone (e.g. myDrone->rotateYaw(..) )
 
     }
 }

Modified: code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc	2011-03-08 22:07:35 UTC (rev 8049)
+++ code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc	2011-03-09 10:18:06 UTC (rev 8050)
@@ -85,7 +85,7 @@
         // Make sure you add the variables auxiliaryThrust_ and rotationThrust_ to XMLPort.
         // 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.
         // Variables can be added by the following command
-        // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode);
+        // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunctionName, getFunctionName, xmlelement, mode);
 
     }
 




More information about the Orxonox-commit mailing list