JMotor
|
control two JMotorDriverServos as if they are one driver More...
#include <JMotorDriverServoDual.h>
Public Member Functions | |
JMotorDriverServoDual (JMotorDriverServo &_m1, JMotorDriverServo &_m2) | |
bool | set (float val) |
set motor power | |
bool | setEnable (bool _enable) |
use to enable or disable a motor, and sets up pin states | |
bool | getEnable () |
get the enable state of the driver | |
float | getMaxRange () |
high end of the range | |
float | getMinRange () |
low end of the range | |
void | setMinServoValue (int value) |
void | setMaxServoValue (int value) |
int | getMinServoValue () |
int | getMaxServoValue () |
int | getServoValueRange () |
void | setServoValues (int min, int max) |
Public Member Functions inherited from JMotorDriverServo | |
void | setMinServoValue (int value) |
microseconds for shortest servo pulse | |
void | setMaxServoValue (int value) |
microseconds for longest servo pulse | |
int | getMinServoValue () |
returns setting for microseconds for shortest servo pulse | |
int | getMaxServoValue () |
returns setting for microseconds for longest servo pulse | |
int | getServoValueRange () |
returns difference (in microseconds) between longest and shortest servo pulse settings | |
void | setServoValues (int min, int max) |
set the settings for short and long servo pulses at the same time | |
int | getSetMicroseconds () |
returns how many microseconds the servo signal pulse was most recently set to | |
bool | getConstrainRange () |
returns whether the range of set() will be constrained to within -1 and 1 | |
void | setConstrainRange (bool _constrainRange) |
set whether the range of set() will be constrained to within -1 and 1 | |
Public Member Functions inherited from JMotorDriver | |
bool | enable () |
enable motor | |
bool | disable () |
disable motor | |
Public Attributes | |
JMotorDriverServo & | m1 |
JMotorDriverServo & | m2 |
Additional Inherited Members | |
Protected Attributes inherited from JMotorDriverServo | |
int | minServoValue |
int | maxServoValue |
int | setMicroseconds = 0 |
bool | constrainRange |
control two JMotorDriverServos as if they are one driver
|
inline |
|
inlinevirtual |
get the enable state of the driver
(bool) | true if enabled, false if disabled |
Reimplemented from JMotorDriver.
|
inlinevirtual |
high end of the range
(float) | maxRange |
Reimplemented from JMotorDriver.
|
inline |
|
inlinevirtual |
low end of the range
(float) | minRange |
Reimplemented from JMotorDriver.
|
inline |
|
inline |
|
inlinevirtual |
set motor power
val | (float) val |
(bool) | false if at end of power range, true otherwise |
Reimplemented from JMotorDriver.
|
inlinevirtual |
use to enable or disable a motor, and sets up pin states
_enable | (bool) true=enable, false=disable |
(bool) | true if state changed, false if state already set |
Reimplemented from JMotorDriver.
|
inline |
|
inline |
|
inline |
JMotorDriverServo& JMotorDriverServoDual::m1 |
JMotorDriverServo& JMotorDriverServoDual::m2 |