Class Motors
Defined in File motors.hpp
Class Documentation
-
class Motors
Public Functions
-
explicit Motors(int32_t serial_number, int hub_port, bool is_hub_port_device, std::function<void(int, double)> duty_cycle_change_handler, std::function<void(int, double)> back_emf_change_handler)
-
~Motors() = default
-
int32_t getSerialNumber() const noexcept
-
uint32_t getMotorCount() const noexcept
-
double getDutyCycle(int index) const
-
void setDutyCycle(int index, double duty_cycle) const
-
double getAcceleration(int index) const
-
void setAcceleration(int index, double acceleration) const
-
bool backEMFSensingSupported(int index) const
-
double getBackEMF(int index) const
-
void setDataInterval(int index, uint32_t data_interval_ms) const
-
double getBraking(int index) const
-
void setBraking(int index, double braking) const
-
explicit Motors(int32_t serial_number, int hub_port, bool is_hub_port_device, std::function<void(int, double)> duty_cycle_change_handler, std::function<void(int, double)> back_emf_change_handler)