C# Class CSharpRoboticsLib.ControlSystems.MotionProfile

Creates a trapezoidal motion profile
Show file Open project: shockwave4488/CSharpRoboticsLib Class Usage Examples

Public Methods

Method Description
GetAcceleration ( double time ) : double

Gets the expected acceleration at a specific time

GetPosition ( double time ) : double

Gets the expected position at a specific time

GetVelocity ( double time ) : double

Gets the expected velocity at a specific time

MotionProfile ( double distance, double maxVelocity, double acceleration, double dt ) : System

Creates a new MotionProfile that works under the constraints specified.

ToString ( ) : string

String format of a MotionProfile

Private Methods

Method Description
Get ( double time ) : MotionSetpoint

Method Details

GetAcceleration() public method

Gets the expected acceleration at a specific time
public GetAcceleration ( double time ) : double
time double
return double

GetPosition() public method

Gets the expected position at a specific time
public GetPosition ( double time ) : double
time double
return double

GetVelocity() public method

Gets the expected velocity at a specific time
public GetVelocity ( double time ) : double
time double
return double

MotionProfile() public method

Creates a new MotionProfile that works under the constraints specified.
public MotionProfile ( double distance, double maxVelocity, double acceleration, double dt ) : System
distance double
maxVelocity double
acceleration double
dt double Time interval each point will be calculated for
return System

ToString() public method

String format of a MotionProfile
public ToString ( ) : string
return string