This commit is contained in:
2025-02-08 19:48:44 +03:00
parent 55d8d359b4
commit d7df8e5bf1
8 changed files with 387 additions and 92 deletions

View File

@@ -26,10 +26,10 @@
#define ENC_DATALEN (13)
// max error counter (when read() returns -1)
#define MAX_ERR_CTR (100)
// encoder ticks per turn
#define ENC_TURN_XTICKS (111111.)
#define ENC_TURN_YTICKS (111111.)
double dtime();
data_t *cmd2dat(const char *cmd);
void data_free(data_t **x);
int openEncoder(const char *path, int speed);
int openMount(const char *path, int speed);
void closeSerial();