8#include <wiringSerial.h>
11#include <condition_variable>
14using namespace std::chrono_literals;
34 void start(
const char* device =
"/dev/ttyUSB0",
int baud = 115200);
41 void mov(
char axis,
int inc);
51 void updatePosition();
55 bool connected =
false;
58 int positionArray[3] = {0, 0, 0};
67 std::thread motorThread;
70 std::condition_variable cond_var;
Definition: motorDriver.h:26
void mov(char axis, int inc)
Definition: motorDriver.cpp:227
void start(const char *device="/dev/ttyUSB0", int baud=115200)
Definition: motorDriver.cpp:14
void stop()
Definition: motorDriver.cpp:60
bool getConnected()
Definition: motorDriver.cpp:218
bool getRunning()
Definition: motorDriver.cpp:210
int * getPosition()
Definition: motorDriver.cpp:202