Мелкий рефакторинг
This commit is contained in:
6
utils.c
6
utils.c
@@ -37,7 +37,7 @@ short can_move(struct barrel* bar) {
|
||||
}
|
||||
|
||||
#ifdef EMULATOR
|
||||
if (!_scheduler_one_robot_mode) {
|
||||
if (!one_robot_mode) {
|
||||
printf("WARMING: нет проверки того, что для перемещения барабана не мешает второй робот\n");
|
||||
}
|
||||
#endif
|
||||
@@ -163,7 +163,7 @@ short can_move(struct barrel* bar) {
|
||||
|
||||
case ZONE_UNLOAD:
|
||||
// последняя промывка, нужно разрешение на выгрузку
|
||||
if (_scheduler_one_robot_mode && button_unload) {
|
||||
if (one_robot_mode && button_unload) {
|
||||
// нужно промывку загрузку 0
|
||||
if (!zone_is_busy(ZONE_LOAD_1)) {
|
||||
return ZONE_LOAD_1;
|
||||
@@ -525,7 +525,7 @@ void create_operation(struct robot_code *code, const short barrel_id, const shor
|
||||
}
|
||||
}
|
||||
|
||||
if (!_scheduler_one_robot_mode) {
|
||||
if (!one_robot_mode) {
|
||||
if (robot_id == 1) {
|
||||
if (dest_zone >= ZONE_GALVANIZING_1) {
|
||||
// из промывки 2б он перекладывал, пусть едет в промывку 2а
|
||||
|
||||
Reference in New Issue
Block a user