back to FEHServo
Description
This function allows the user to set the minimum compensation value for a servo. The minimum value is obtained from the .TouchCalibrate()
function. It is critical that this value is set for every servo object in order to prevent unnecessary wear on the servo.
Syntax
.SetMin( int min )
Parameters
min
: Integer value that is obtained from the .TouchCalibrate() function
Returns
None.
Examples
#include <FEHServo.h> #define SERVO_MIN 500 #define SERVO_MAX 2250 int main(void) { //declares a servo on servo port 3 FEHServo arm_servo(FEHServo::Servo3); //enter the minimum and maximum servo values //from the .TouchCalibrate() function arm_servo.SetMin(SERVO_MIN); arm_servo.SetMax(SERVO_MAX); }