コード例 #1
0
/*****
 * After pressing the reset button in the GUI, this controller will be set to
 * default factory settings like at the start of a simulation.
 *****/
void DSA_controller::Reset() {
    collisionDelay  = 0;
    target          = loopFunctions.NestPosition;
    tempPattern.clear();
    CopyPatterntoTemp();
    generatePattern(NumberOfSpirals, NumberOfRobots);
}
コード例 #2
0
/*****
 * After pressing the reset button in the GUI, this controller will be set to
 * default factory settings like at the start of a simulation.
 *****/
void iAnt_controller::Reset() {
    collisionDelay  = 0;
    target          = data->NestPosition;
    tempPattern.clear();
    CopyPatterntoTemp();
    //goingHome = false;

}