#include <motors.h>
|
double | getAcceleration (int index) const |
|
double | getBackEMF (int index) const |
|
double | getBraking (int index) const |
|
double | getDutyCycle (int index) const |
|
uint32_t | getMotorCount () const noexcept |
|
| 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) |
|
void | setAcceleration (int index, double acceleration) const |
|
void | setBraking (int index, double braking) const |
|
void | setDataInterval (int index, uint32_t data_interval_ms) const |
|
void | setDutyCycle (int index, double duty_cycle) const |
|
| ~Motors () |
|
Definition at line 42 of file motors.h.
◆ Motors()
phidgets::Motors::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 |
|
) |
| |
|
explicit |
◆ ~Motors()
phidgets::Motors::~Motors |
( |
| ) |
|
◆ getAcceleration()
double phidgets::Motors::getAcceleration |
( |
int |
index | ) |
const |
◆ getBackEMF()
double phidgets::Motors::getBackEMF |
( |
int |
index | ) |
const |
◆ getBraking()
double phidgets::Motors::getBraking |
( |
int |
index | ) |
const |
◆ getDutyCycle()
double phidgets::Motors::getDutyCycle |
( |
int |
index | ) |
const |
◆ getMotorCount()
uint32_t phidgets::Motors::getMotorCount |
( |
| ) |
const |
|
noexcept |
◆ setAcceleration()
void phidgets::Motors::setAcceleration |
( |
int |
index, |
|
|
double |
acceleration |
|
) |
| const |
◆ setBraking()
void phidgets::Motors::setBraking |
( |
int |
index, |
|
|
double |
braking |
|
) |
| const |
◆ setDataInterval()
void phidgets::Motors::setDataInterval |
( |
int |
index, |
|
|
uint32_t |
data_interval_ms |
|
) |
| const |
◆ setDutyCycle()
void phidgets::Motors::setDutyCycle |
( |
int |
index, |
|
|
double |
duty_cycle |
|
) |
| const |
◆ motor_count_
uint32_t phidgets::Motors::motor_count_ |
|
private |
◆ motors_
std::vector<std::unique_ptr<Motor> > phidgets::Motors::motors_ |
|
private |
The documentation for this class was generated from the following files: