Virtual Robot Simulator Official Guidebook
  • Coverpage
  • Introduction
  • FTC
    • Centerstage Game and Basic Rules
    • Powerplay Game and Basic Rules
  • VRS
  • Programming
    • User Interface
    • Blocks
      • LinearOpMode
      • Gamepad
      • Actuators
        • DcMotor
        • CRServo
        • Servo
      • Sensors
        • DistanceSensor
        • IMU
        • IMU-BNO055.Parameters
        • REV Color/Range Sensor
        • TouchSensor
      • Utilities
        • Acceleration
        • AngleUnit
        • AngularVelocity
        • Axis
        • Color
        • Orientation
        • PIDFCoefficients
        • Position
        • Range
        • Telemetry
        • Time
        • Vector
        • Velocity
      • Logic
      • Loops
      • Math
      • Text
      • Lists
      • Variables
      • Function
      • Miscellaneous
    • Basic Lessons
      • Drivetrain
      • IMU
      • Color Sensor
      • Telemetry
      • Range Sensor
      • Touch Sensor
      • Servo
      • CRServo
      • DCMotor
      • Logic and Loops
      • Functions
      • Tele-Op Control
    • Advanced Lessons
      • Advanced Tele-Op Control
    • Video Lessons
    • Simulation
    • Exploratory Activities
      • Wandering Robot
  • Robot Arena
    • Single Player
    • Activities
      • Coding Competition
      • CenterStage Competition
  • Conclusion
  • Author
  • Other Editions
Powered by GitBook
On this page
  1. Programming
  2. Blocks
  3. Actuators

CRServo

PreviousDcMotorNextServo

Last updated 9 months ago

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.