Мелкий рефакторинг

This commit is contained in:
2022-12-16 13:37:11 +03:00
parent 83086f3be1
commit 33b705c1ef
4 changed files with 11 additions and 10 deletions

View File

@@ -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а