Рефакторинг планировщика, вспомогательная логика теперь вынесена в utils.c
This commit is contained in:
13
utils.h
13
utils.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user