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. Utilities

PIDFCoefficients

PreviousOrientationNextPosition

Last updated 9 months ago

PIDFCoefficients represents a set of tuning parameters used in PIDF control algorithms, specifically for controlling motors. PIDF stands for Proportional, Integral, Derivative, and Feedforward. The blocks in this section allow you to create PIDFCoefficients objects, manipulate these objects, and obtain information from these objects.

new PIDFCoefficients

Returns a new PIDFCoefficients object with default values: p=0, i=0, d=0, f=0. The default algorithm is PIDF.

new PIDFCoefficients (expanded with algorithm)

Returns a new PIDFCoefficients object with the specified PIDF values and algorithm.

new PIDFCoefficients (expanded)

Returns a copy of the given PIDFCoefficients object.

Set PIDFCoefficients.P

Sets the proportional term P of the given PIDFCoefficients object.

new PIDFCoefficients.P

Returns the proportional term P of the given PIDFCoefficients object.

Set PIDFCoefficients.I

Sets the integral term I of the given PIDFCoefficients object.

new PIDFCoefficients.I

Returns the integral term I of the given PIDFCoefficients object.

Set PIDFCoefficients.D

Sets the derivative term D of the given PIDFCoefficients object.

new PIDFCoefficients.D

Returns the derivative term D of the given PIDFCoefficients object.

Set PIDFCoefficients.F

Sets the feedforward term F of the given PIDFCoefficients object.

new PIDFCoefficients.F

Returns the feedforward term F of the given PIDFCoefficients object.

set PIDFCoefficients.Algorithm

Sets the algorithm for the given PIDFCoefficients object. The system only supports two algorithms: “PIDF”, or “LegacyPID.”

PIDFCoefficients.Algorithm

Returns the algorithm of the given PIDFCoefficients object.

call PIDFCoefficients.toText

Returns a text presentation of the given PIDFCoefficients object.