CRServo
A Continuous Rotation Servo (CRServo) is a type of servo motor designed to rotate continuously in both directions. Unlike standard servos, which have a limited range of motion, CRServos can spin indefinitely.
Key Characteristics:
Continuous rotation: Can spin in both clockwise and counterclockwise directions.
Speed control: Typically controlled by setting a power level between -1.0 (full speed reverse) and 1.0 (full speed forward).
No positional feedback: Unlike standard servos, CRServos generally don't provide feedback on their position.
Direction
Provides the current direction of a servo.
Key points:
Return value: A string value of “FORWARD” or “REVERSE”.
FORWARD: The power the servo receives is unaltered.
REVERSE: The power the servo receives is multiplied by -1, reversing its sign.
Usage: Used to check the current direction of a servo. Crucial for precise motor control and ease of programming.
Power
Provides the power of a servo.
Key points:
Return value: A floating point value from -1.0 to 1.0
Usage: Used to check the power of a servo. Crucial for precise motor control.
set fullservo.Direction to
Controls the direction of the servo. The only directions are “FORWARD” or “REVERSE”
Key points:
FORWARD: The power the servo receives is unaltered.
REVERSE: The power the servo receives is multiplied by -1, reversing its sign
Usage: To make setting and controlling the power to servo easier while programming and driving.
Set fullservo.Power to
Controls the power the servo receives, determining its speed and direction.
Key points:
Value range: Accepts a floating-point value between -1.0 and 1.0.
Direction: Positive values move the servo forward, negative values move it backward.
Magnitude: The absolute value of the power determines the servo’s speed.