![]() |
cellUview 1.0.0
A real-time image processing and analysis suite for digital microscopy.
|
#include <motorDriver.h>
Public Member Functions | |
| void | start (const char *device="/dev/ttyUSB0", int baud=115200) |
| void | stop () |
| int * | getPosition () |
| bool | getRunning () |
| bool | getConnected () |
| void | mov (char axis, int inc) |
Class to interface with motor control board.
| bool MotorDriver::getConnected | ( | ) |
| int * MotorDriver::getPosition | ( | ) |
| bool MotorDriver::getRunning | ( | ) |
| void MotorDriver::mov | ( | char | axis, |
| int | inc | ||
| ) |
Public member function called by GUI class to initiate a motor movement. Updates axis and increment for movement and sets flag to wake motor thread.
| void MotorDriver::start | ( | const char * | device = "/dev/ttyUSB0", |
| int | baud = 115200 |
||
| ) |
Opens serial link with motor driver board and starts motor thread.
| device | device id, defaults to "/dev/ttyUSB0" |
| baud | baud rate of serial connection, defaults to 115200 |
| void MotorDriver::stop | ( | ) |
Stops motor thread and closes serial connection.