Project

General

Profile

Revision 61fb2529

ID61fb2529957d680307977e8c665ff75195f184ef
Parent 8cc0bdf7
Child 6ad8ef06

Added by Yuyang Guo about 10 years ago

fix bug in connecting parking behavior

View differences:

scout/libscout/src/test_behaviors/ApproachEmitter.cpp
72 72
            bot_em_count += (senders[i] == BOT_BOM);
73 73
        }
74 74
        if (top_em_count * bot_em_count != 0) {
75
           return CENTRED;
75
            return CENTRED;
76 76
        } else if (top_em_count > 0) {
77 77
            motors->set_sides(-50, -50, MOTOR_PERCENT);
78 78
        } else {
......
87 87
            bot_em_count += (senders[i] == BOT_BOM);
88 88
        }
89 89
        if (top_em_count * bot_em_count != 0) {
90
            return CENTRED;
90 91
        } else if (top_em_count > 0) {
91 92
            motors->set_sides(50, 50, MOTOR_PERCENT);
92 93
        } else {

Also available in: Unified diff