Class Motor

Class Documentation

class Motor

Public Functions

explicit Motor(int32_t serial_number, int hub_port, bool is_hub_port_device, int channel, std::function<void(int, double)> duty_cycle_change_handler, std::function<void(int, double)> back_emf_change_handler)
~Motor()
int32_t getSerialNumber() const noexcept
double getDutyCycle() const
void setDutyCycle(double duty_cycle) const
double getAcceleration() const
void setAcceleration(double acceleration) const
bool backEMFSensingSupported() const
double getBackEMF() const
void setDataInterval(uint32_t data_interval_ms) const
double getBraking() const
void setBraking(double braking) const
void dutyCycleChangeHandler(double duty_cycle) const
void backEMFChangeHandler(double back_emf) const