|
RCKit
|
Setter class that limits its input to between specified min and max values. More...
#include <ServoSetter.h>


Public Member Functions | |
| ServoSetter (Servo *servo) | |
| virtual void | input (int value) |
| virtual void | failsafe () |
| Called when the source of input data is lost, and the Setter is required to fail in a safe way. | |
Setter class that limits its input to between specified min and max values.
HBridgeRCRx.pde, RCRx.pde, and TestSuite.pde.
| ServoSetter::ServoSetter | ( | Servo * | servo | ) |
| [in] | servo | The target Servo instance. It is the callers job to attach the Servo to the servo output pin |
| void ServoSetter::input | ( | int | value | ) | [virtual] |
Input the value to be used to set the servo Servos are controlled within the range 0 to 180 degrees Input values in the range 0-255 are scaled to 0-180 Values outside that range are limited to 0 and 255
| [in] | value | The input value |
Reimplemented from Setter.
1.7.5.1