#include <motor.h>
Definition at line 41 of file motor.h.
◆ Motor()
phidgets::Motor::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 |
|
) |
| |
|
explicit |
◆ ~Motor()
phidgets::Motor::~Motor |
( |
| ) |
|
◆ backEMFChangeHandler()
void phidgets::Motor::backEMFChangeHandler |
( |
double |
back_emf | ) |
const |
◆ BackEMFChangeHandler()
void phidgets::Motor::BackEMFChangeHandler |
( |
PhidgetDCMotorHandle |
motor_handle, |
|
|
void * |
ctx, |
|
|
double |
back_emf |
|
) |
| |
|
staticprivate |
◆ dutyCycleChangeHandler()
void phidgets::Motor::dutyCycleChangeHandler |
( |
double |
duty_cycle | ) |
const |
◆ DutyCycleChangeHandler()
void phidgets::Motor::DutyCycleChangeHandler |
( |
PhidgetDCMotorHandle |
motor_handle, |
|
|
void * |
ctx, |
|
|
double |
duty_cycle |
|
) |
| |
|
staticprivate |
◆ getAcceleration()
double phidgets::Motor::getAcceleration |
( |
| ) |
const |
◆ getBackEMF()
double phidgets::Motor::getBackEMF |
( |
| ) |
const |
◆ getBraking()
double phidgets::Motor::getBraking |
( |
| ) |
const |
◆ getDutyCycle()
double phidgets::Motor::getDutyCycle |
( |
| ) |
const |
◆ setAcceleration()
void phidgets::Motor::setAcceleration |
( |
double |
acceleration | ) |
const |
◆ setBraking()
void phidgets::Motor::setBraking |
( |
double |
braking | ) |
const |
◆ setDataInterval()
void phidgets::Motor::setDataInterval |
( |
uint32_t |
data_interval_ms | ) |
const |
◆ setDutyCycle()
void phidgets::Motor::setDutyCycle |
( |
double |
duty_cycle | ) |
const |
◆ back_emf_change_handler_
std::function<void(int, double)> phidgets::Motor::back_emf_change_handler_ |
|
private |
◆ channel_
int phidgets::Motor::channel_ |
|
private |
◆ duty_cycle_change_handler_
std::function<void(int, double)> phidgets::Motor::duty_cycle_change_handler_ |
|
private |
◆ motor_handle_
PhidgetDCMotorHandle phidgets::Motor::motor_handle_ |
|
private |
The documentation for this class was generated from the following files: