|
JMotor
|
convert voltage to value needed to set driver at to get that voltage More...
#include <JVoltageCompensator.h>

Public Member Functions | |
| virtual float | adjust (float voltage, float driverRange) |
| do conversion | |
| virtual float | getSupplyVoltage () |
convert voltage to value needed to set driver at to get that voltage
|
virtual |
do conversion
| voltage | (float) voltage wanted from motor driver output |
| driverRange | (float) set what value makes the driver output 100% of supply voltage |
| (float) | value to set driver at |
Reimplemented in JVoltageCompAdjust, JVoltageCompConst, and JVoltageCompMeasure< N >.
|
virtual |
| (float) | returns current supply voltage |
Reimplemented in JVoltageCompAdjust, JVoltageCompConst, and JVoltageCompMeasure< N >.