Рефакторинг планировщика, вспомогательная логика теперь вынесена в utils.c

This commit is contained in:
2022-12-14 16:16:06 +03:00
parent 6195891e57
commit 7e1cf33d1f
7 changed files with 610 additions and 583 deletions

13
utils.h
View File

@@ -318,6 +318,19 @@ extern short hla_time_washing_2;
#define ROBOT_X_TARGET_ZONE_ADDR (VFD_REG_D0_ADDR + ROBOT_X_TARGET_ZONE_OFFSET)
char zone_is_busy(short zone);
short can_move(struct barrel* bar);
short get_operation_priority(short barrel_id);
char remove_barrel_from_zone(short zone);
void create_operation(struct robot_code *code, const short barrel_id, const short start_zone, const short dest_zone,
const short current_zone, const short robot_id);
#ifdef EMULATOR
void debug_print_robot_code(const struct robot_code* code, const short robot_id);
#endif
#ifdef __cplusplus
}
#endif