1#ifndef J_SERVO_CURRENT_SENSOR_H
2#define J_SERVO_CURRENT_SENSOR_H
implements JServoStallSensing interface.
Definition JServoCurrentSensor.h:15
void setMinRange(int min)
Definition JServoCurrentSensor.h:72
void run()
Definition JServoCurrentSensor.h:88
void setMeasurementPin(byte _newPin)
Definition JServoCurrentSensor.h:80
void setMaxRange(int max)
Definition JServoCurrentSensor.h:76
float getMeasurement(bool _run=true)
Definition JServoCurrentSensor.h:49
int getMaxRange()
Definition JServoCurrentSensor.h:68
bool justStarted
Definition JServoCurrentSensor.h:18
int readings[N]
Definition JServoCurrentSensor.h:22
JServoCurrentSensor(int _measurePin, int _maxRange=1000, int _minRange=0)
constructor for JServoCurrentSensor
Definition JServoCurrentSensor.h:38
unsigned long lastMeasurementMillis
Definition JServoCurrentSensor.h:25
int getMinRange()
Definition JServoCurrentSensor.h:64
int getUnscaledMeasurement()
Definition JServoCurrentSensor.h:56
int maxRange
Definition JServoCurrentSensor.h:28
bool getJustStarted()
Definition JServoCurrentSensor.h:60
long measurementRaw
Definition JServoCurrentSensor.h:26
byte getMeasurementPin()
Definition JServoCurrentSensor.h:84
int measurePin
Definition JServoCurrentSensor.h:17
long total
Definition JServoCurrentSensor.h:24
int minRange
Definition JServoCurrentSensor.h:27
byte readIndex
Definition JServoCurrentSensor.h:23
defines interface for classes that can measure how hard a servo is working
Definition JServoStallSensing.h:7