Revision 61fb2529
fix bug in connecting parking behavior
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