JMotor
|
defines common interface for all types of JMotorDrivers More...
#include <JMotorDriver.h>
Public Member Functions | |
virtual bool | set (float val) |
set motor power | |
virtual bool | setEnable (bool _enable) |
use to enable or disable a motor, and sets up pin states | |
virtual bool | getEnable () |
get the enable state of the driver | |
virtual float | getMaxRange () |
high end of the range | |
virtual float | getMinRange () |
low end of the range | |
bool | enable () |
enable motor | |
bool | disable () |
disable motor | |
defines common interface for all types of JMotorDrivers
|
inline |
disable motor
(bool) | true if state changed, false if state already set |
|
inline |
enable motor
(bool) | true if state changed, false if state already set |
|
virtual |
get the enable state of the driver
(bool) | true if enabled, false if disabled |
Reimplemented in JMotorDriverAvrHBridge, JMotorDriverAvrL293, JMotorDriverAvrPWM, JMotorDriverAvrPWMDir, JMotorDriverAvrServo, JMotorDriverDual, JMotorDriverEsp32HBridge, JMotorDriverEsp32HBridgeTwoLedcChannels, JMotorDriverEsp32L293, JMotorDriverEsp32PWM, JMotorDriverEsp32PWMDir, JMotorDriverEsp32Servo, JMotorDriverServoAdvancedDual, JMotorDriverServoDual, and JMotorDriverTMC7300.
|
virtual |
high end of the range
(float) | maxRange |
Reimplemented in JMotorDriverAvrHBridge, JMotorDriverAvrL293, JMotorDriverAvrPWM, JMotorDriverAvrPWMDir, JMotorDriverAvrServo, JMotorDriverDual, JMotorDriverEsp32HBridge, JMotorDriverEsp32HBridgeTwoLedcChannels, JMotorDriverEsp32L293, JMotorDriverEsp32PWM, JMotorDriverEsp32PWMDir, JMotorDriverEsp32Servo, JMotorDriverServoAdvancedDual, JMotorDriverServoDual, and JMotorDriverTMC7300.
|
virtual |
low end of the range
(float) | minRange |
Reimplemented in JMotorDriverAvrHBridge, JMotorDriverAvrL293, JMotorDriverAvrPWM, JMotorDriverAvrPWMDir, JMotorDriverAvrServo, JMotorDriverDual, JMotorDriverEsp32HBridge, JMotorDriverEsp32HBridgeTwoLedcChannels, JMotorDriverEsp32L293, JMotorDriverEsp32PWM, JMotorDriverEsp32PWMDir, JMotorDriverEsp32Servo, JMotorDriverServoAdvancedDual, JMotorDriverServoDual, and JMotorDriverTMC7300.
|
virtual |
set motor power
val | (float) val |
(bool) | false if at end of power range, true otherwise |
Reimplemented in JMotorDriverAvrPWM, JMotorDriverAvrServo, JMotorDriverEsp32PWM, JMotorDriverEsp32Servo, JMotorDriverAvrHBridge, JMotorDriverAvrL293, JMotorDriverAvrPWMDir, JMotorDriverDual, JMotorDriverEsp32HBridge, JMotorDriverEsp32HBridgeTwoLedcChannels, JMotorDriverEsp32L293, JMotorDriverEsp32PWMDir, JMotorDriverServoAdvancedDual, JMotorDriverServoDual, and JMotorDriverTMC7300.
|
virtual |
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 in JMotorDriverAvrHBridge, JMotorDriverAvrL293, JMotorDriverAvrPWM, JMotorDriverAvrPWMDir, JMotorDriverAvrServo, JMotorDriverDual, JMotorDriverEsp32HBridge, JMotorDriverEsp32HBridgeTwoLedcChannels, JMotorDriverEsp32L293, JMotorDriverEsp32PWM, JMotorDriverEsp32PWMDir, JMotorDriverEsp32Servo, JMotorDriverServoAdvancedDual, JMotorDriverServoDual, and JMotorDriverTMC7300.