Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 6:18:50 PM (14 years ago)
Author:
solex
Message:

formationflight final commit before presentation (probably…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/controllers/AIController.cc

    r7034 r7066  
    127127
    128128            if  (this->specificMasterAction_ != NONE)
    129             {
    130129                    this->specificMasterActionHold();
    131 
    132 //                 if (this->specificMasterAction_  == TURN180)
    133 //                     this->turn180Init();
    134 
    135 //                 if (this->specificMasterAction_ == SPIN)
    136 //                     this->spinInit();
    137 
    138 //                 if (this->specificMasterAction_ == FOLLOWHUMAN)
    139 //                     this->followHuman(this->HumanToFollow_, false);
    140             }
    141130
    142131            else {
     
    151140                if (random < 5)
    152141                   this->spinInit();
     142
     143                // follow a randomly chosen human - a specific Master Action
     144                random = rnd(1000.0f);
     145                if (random < 1)
     146                   this->followRandomHumanInit();
    153147
    154148                 // lose master status (only if less than 4 slaves in formation)
     
    230224            if (this->specificMasterAction_ == SPIN)
    231225                    this->spin();
    232             if (this->specificMasterAction_ == FOLLOWHUMAN)
     226            if (this->specificMasterAction_ == FOLLOW)
    233227                    this->follow();
    234228        }
Note: See TracChangeset for help on using the changeset viewer.