Class MotorDriver

Class Documentation

class MotorDriver

Public Functions

MotorDriver()
void EnableMotorDriver()
void DisableMotorDriver()
void SetMotors(Motor *motor1, Motor *motor2)
void Print()
void EnablePositionRolloverError()
void DisablePositionRolloverError()
void SetTimeout(uint8_t time)
bool IsConnected()
bool IsEnabled()
int GetErrorCode()
void Enable()
void Disable()
inline void set_motor1(Motor *mot)
inline void set_motor2(Motor *mot)
inline void set_is_connected(bool val)
inline void set_is_enabled(bool val)
inline void set_error_code(int val)
inline void set_enable(bool val)
inline void set_enable_position_rollover_error(bool val)
inline void set_timeout(uint8_t val)
void set_adc(float adc_val[])
inline Motor *get_motor1()
inline Motor *get_motor2()
inline bool get_is_connected()
inline bool get_is_enabled()
inline int get_error_code()
inline bool get_enable()
inline bool get_enable_position_rollover_error()
inline uint8_t get_timeout()

Public Members

float adc[2]
Motor *motor1
Motor *motor2
bool is_connected = 1
bool is_enabled
int error_code
bool enable
bool enable_position_rollover_error
uint8_t timeout