51 slew(
double distance,
int minimum_speed);
114 double x_intercept = 0;
115 double y_intercept = 0;
117 double last_output = 0;
118 bool is_enabled =
false;
119 double max_speed = 0;
PROS API header provides high-level user functionality.
Slew-rate limiter that ramps speed up linearly over a configurable distance.
slew(double distance, int minimum_speed)
Sets constants for slew.
Constants constants_get()
slew()
Default constructor.
double speed_max_get()
Returns the max speed the slew can be.
double output()
Returns the last output of iterate.
void constants_set(double distance, int minimum_speed)
Sets constants for slew.
Constants constants
Active slew constants (read/write).
double iterate(double current)
Iterates slew and ramps up speed the farther along the motion the robot gets.
void speed_max_set(double speed)
Sets the max speed the slew can be.
void initialize(bool enabled, double maximum_speed, double target, double current)
Initializes slew for the motion.
bool enabled()
Returns true if slew is enabled, and false if it isn't.
Public LightLib odometry / pose-estimation API.
Slew configuration constants.
double min_speed
Starting speed at the beginning of a motion.
double distance_to_travel
Distance over which speed ramps to max.
Shared types, enums, math helpers, and unit conversions used across LightLib.