#ifndef _PATH_H #define _PATH_H #include "control.h" struct path; typedef struct path path; struct command; typedef struct command command; struct command{ timestamp ts; accel_t accel; turn_t turn; }; struct path { GQueue* commands; }; command *command_new(timestamp ts, accel_t a, turn_t t); void command_free(command* c); path *path_new(); void path_execute(trial* t,path* p); void path_free(path* p); int path_app_fitseq(path* p, trial* t, timestamp offset, timestamp testtime); int path_app_target(path* p, trial* t, int offset, int x, int y); #endif