1#ifndef J_SERVO_CONTROLLER_STALL_PROTECTED_H
2#define J_SERVO_CONTROLLER_STALL_PROTECTED_H
class for controlling JMotorDriverServoAdvanced, with power reducing option along with standard JServ...
Definition JServoControllerAdvanced.h:10
void setStrengthNormal()
set servo to normal setting
Definition JServoControllerAdvanced.h:102
bool weakened
Definition JServoControllerAdvanced.h:21
virtual void run()
call this in your main loop
Definition JServoControllerAdvanced.h:63
void setStrengthWeak()
set servo to weaker setting
Definition JServoControllerAdvanced.h:94
this child class of JServoController uses JServoStallSensing to reduce servo power
Definition JServoControllerStallProtected.h:9
void setStallProtectionEnable(bool enableStallProtection)
Definition JServoControllerStallProtected.h:81
JServoControllerStallProtected(JServoControllerAdvanced advancedServo, JServoStallSensing &servoStallSensor, float _unStallThreshold, float _stallThreshold, unsigned long _stallActivateTimeout, unsigned long _stallDeactivateTimeout)
Definition JServoControllerStallProtected.h:22
bool stallProtected
Definition JServoControllerStallProtected.h:14
bool stallProtectionActivated
Definition JServoControllerStallProtected.h:16
unsigned long stallActivateTimeout
Definition JServoControllerStallProtected.h:17
unsigned long getTimeSinceStallStateChangeMillis()
Definition JServoControllerStallProtected.h:69
bool getStallProtectionEnable()
Definition JServoControllerStallProtected.h:77
bool stalled
Definition JServoControllerStallProtected.h:11
bool isStallProtectionActivated()
Definition JServoControllerStallProtected.h:65
virtual void run()
call this in your main loop
Definition JServoControllerStallProtected.h:33
unsigned long stallDeactivateTimeout
Definition JServoControllerStallProtected.h:18
float stallThreshold
Definition JServoControllerStallProtected.h:13
JServoStallSensing & stallSensor
Definition JServoControllerStallProtected.h:21
unsigned long stallStateChangeMillis
Definition JServoControllerStallProtected.h:15
bool isStalled()
Definition JServoControllerStallProtected.h:73
float unStallThreshold
Definition JServoControllerStallProtected.h:12
defines interface for classes that can measure how hard a servo is working
Definition JServoStallSensing.h:7
virtual float getMeasurement(bool _run=true)=0