@kuriousdesign/machine-sdk
Version:
Shared data types and helpers for machine-related repositories
29 lines (28 loc) • 776 B
TypeScript
export declare enum Priorities {
NONE = 0,// do not remove or change this
LOAD_PARTS = 2,
START_POT_PRESSURIZATION = 10,
PRE_WEIGH_TUBES = 20,
APPLY_LINER = 30,
PHOTOGRAPH_TUBES = 40,
POST_WEIGH_TUBES = 50,
START_POT_DEPRESSURIZATION = 60,
WAIT_IMAGE_INSPECTION = 70,
UNLOAD_PARTS = 80
}
export declare function priorityToString(priority: Priorities): string;
export interface TaskData {
description: string;
targetId: number;
taskId: number;
paramArray: number[];
state: number;
}
export declare const initialTaskData: TaskData;
export interface TaskQueue {
topPriority: Priorities;
taskList: TaskData[];
taskCnt: number;
activeTaskIndex: number;
}
export declare const initialTaskQueue: TaskQueue;