Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 3, 2011, 4:18:34 PM (13 years ago)
Author:
dafrick
Message:

Committing muster-lösung.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc

    r8011 r8012  
    3636    //TODO: Put your code in here:
    3737    // Create the factory for the drone.
     38    CreateFactory(AutonomousDrone);
    3839
    3940    /**
     
    4748        //TODO: Put your code in here:
    4849        // Register the drone class to the core.
     50        RegisterObject(AutonomousDrone);
    4951
    5052        this->myController_ = NULL;
     
    8486        //TODO: Put your code in here:
    8587        // 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.
    8789        // 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);
    8993
    9094    }
Note: See TracChangeset for help on using the changeset viewer.