JMotor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JVoltageCompensator Class Reference

convert voltage to value needed to set driver at to get that voltage More...

#include <JVoltageCompensator.h>

Inheritance diagram for JVoltageCompensator:
Inheritance graph
[legend]

Public Member Functions

virtual float adjust (float voltage, float driverRange)
 do conversion
 
virtual float getSupplyVoltage ()
 

Detailed Description

convert voltage to value needed to set driver at to get that voltage

Member Function Documentation

◆ adjust()

virtual float JVoltageCompensator::adjust ( float  voltage,
float  driverRange 
)
virtual

do conversion

Parameters
voltage(float) voltage wanted from motor driver output
driverRange(float) set what value makes the driver output 100% of supply voltage
Return values
(float)value to set driver at

Reimplemented in JVoltageCompAdjust, JVoltageCompConst, and JVoltageCompMeasure< N >.

◆ getSupplyVoltage()

virtual float JVoltageCompensator::getSupplyVoltage ( )
virtual
Return values
(float)returns current supply voltage

Reimplemented in JVoltageCompAdjust, JVoltageCompConst, and JVoltageCompMeasure< N >.


The documentation for this class was generated from the following file: