1#ifndef J_MOTOR_COMPENSATOR_H
2#define J_MOTOR_COMPENSATOR_H
This class defines a common interface for converting from speed to driver input. It should compensate...
Definition JMotorCompensator.h:9
virtual float getMaxVel()
How fast of a motor speed setting would get adjusted to full motor power.
void setDriverRange(float _driverRange)
set what value makes the driver output 100% of supply voltage
Definition JMotorCompensator.h:19
virtual float compensate(float val)
calculate
float maxDriverRange
Definition JMotorCompensator.h:12
float getDriverRange()
get what value makes the driver output 100% of supply voltage
Definition JMotorCompensator.h:55
virtual float getMinVel()
Slowest speed motor can go.
void setMaxDriverRangeAmount(float _driverRangeAmount)
set what fraction of driverRange can be used
Definition JMotorCompensator.h:27
float getMaxDriverRangeAmount()
get what fraction of driverRange can be used
Definition JMotorCompensator.h:64
float driverRange
Definition JMotorCompensator.h:11