Converts from speed to driver input with a simple multiplier.
More...
#include <JMotorCompDirect.h>
Converts from speed to driver input with a simple multiplier.
◆ JMotorCompDirect()
JMotorCompDirect::JMotorCompDirect |
( |
float |
_multiplier | ) |
|
|
inline |
constructor
- Parameters
-
_multiplier | (float) driver units per speed units |
◆ compensate()
float JMotorCompDirect::compensate |
( |
float |
val | ) |
|
|
inlinevirtual |
calculate
- Parameters
-
- Return values
-
(float) | value to set driver |
Reimplemented from JMotorCompensator.
◆ getMaxVel()
float JMotorCompDirect::getMaxVel |
( |
| ) |
|
|
inlinevirtual |
How fast of a motor speed setting would get adjusted to full motor power.
- Note
- may change as battery voltage changes
- Return values
-
Reimplemented from JMotorCompensator.
◆ getMinVel()
float JMotorCompDirect::getMinVel |
( |
| ) |
|
|
inlinevirtual |
◆ setMultiplier()
bool JMotorCompDirect::setMultiplier |
( |
float |
_multiplier | ) |
|
|
inline |
- Parameters
-
_multiplier | (float) driver units per speed units |
- Return values
-
(bool) | true if multiplier changed |
The documentation for this class was generated from the following file: