Изменена формула расчета времени пути

This commit is contained in:
VladislavOstapov 2023-01-28 12:45:23 +03:00
parent d8fee17444
commit 9a206925c5

View File

@ -212,7 +212,11 @@ short can_move(struct barrel *bar, char robot_id) {
} }
#ifndef EMULATOR #ifndef EMULATOR
approximate_time *= 4; if (approximate_time > 1) {
approximate_time = ((approximate_time - 1) * 3) + 6;
} else if (approximate_time == 1) {
approximate_time = 8;
}
#endif #endif
if (bar->software_timer > -approximate_time) { if (bar->software_timer > -approximate_time) {