1#ifndef J_MOTOR_COMP_DIRECT_H
2#define J_MOTOR_COMP_DIRECT_H
19 multiplier = _multiplier;
31 if (multiplier != _multiplier) {
32 multiplier = _multiplier;
Converts from speed to driver input with a simple multiplier.
Definition JMotorCompDirect.h:8
bool setMultiplier(float _multiplier)
Definition JMotorCompDirect.h:29
float getMinVel()
Slowest speed motor can go.
Definition JMotorCompDirect.h:42
JMotorCompDirect(float _multiplier)
constructor
Definition JMotorCompDirect.h:17
float compensate(float val)
calculate
Definition JMotorCompDirect.h:21
float getMaxVel()
How fast of a motor speed setting would get adjusted to full motor power.
Definition JMotorCompDirect.h:37
This class defines a common interface for converting from speed to driver input. It should compensate...
Definition JMotorCompensator.h:9
float maxDriverRange
Definition JMotorCompensator.h:12
float driverRange
Definition JMotorCompensator.h:11