Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2010, 6:12:13 PM (14 years ago)
Author:
gnadler
Message:

rockets get target but moveToPosition function does not work correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/orxonox/controllers/DroneController.cc

    r6903 r6905  
    4949        assert(dynamic_cast<Drone*>(creator)!=0);
    5050        this->setControllableEntity(dynamic_cast<Drone*>(creator));
     51                this->counter=0;
    5152    }
    5253
     
    6364    void DroneController::tick(float dt)
    6465    {
     66                this->counter++;
    6567        // Place your code here:
    6668        // - steering commands
     
    7072        // - rotatePitch, rotateYaw, rotateRoll
    7173        // - apply the to myDrone (e.g. myDrone->rotateYaw(..) )
    72 
    73                 myDrone->rotateYaw(0.2);
     74                myDrone->rotatePitch(0.08);
     75                myDrone->moveFrontBack(1);
    7476
    7577    }
Note: See TracChangeset for help on using the changeset viewer.