remove dependence of libusefull_macros

This commit is contained in:
2025-01-28 20:44:12 +03:00
parent 19f61697d6
commit 5441a87fff
11 changed files with 453 additions and 166 deletions

View File

@@ -18,11 +18,19 @@
#pragma once
#include "sidservo.h"
// magick starting sequence
#define ENC_MAGICK (204)
// encoder data sequence length
#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.)
int openEncoder(const char *path, int speed);
int openMount(const char *path, int speed);
void closeSerial();
mcc_errcodes_t getEnc(coords_t *c);