ramp

ramp(double slope, double startTime, double endTime)

Description

Returns 0 until the startTime and then slopes upward until endTime and then holds constant.

Parameters

Name Type Description
slope double the coefficient of returned value growth between startTime and endTime
startTime double the start time of the ramp
endTime double the end time of the ramp

Result

Type Description
double  0 until the startTime; then slopes upward until endTime and then holds constant.

Example

Units

slope -> units
startTime -> time
pulseWidth -> time

ramp() -> units*time