CTRE_Phoenix 5.20.2
com.ctre.phoenix.motion.BufferedTrajectoryPointStream Class Reference

Public Member Functions

ErrorCode Clear ()
 
ErrorCode Write (TrajectoryPoint trajPt)
 
ErrorCode Write (TrajectoryPoint[] trajPts, int trajPtCount)
 
ErrorCode Write (TrajectoryPoint[] trajPts)
 
long getHandle ()
 

Detailed Description

Stream of trajectory points for Talon/Victor motion profiling.

Member Function Documentation

◆ Clear()

ErrorCode com.ctre.phoenix.motion.BufferedTrajectoryPointStream.Clear ( )
inline

Clear all trajectory points.

Returns
nonzero error code if operation fails.

◆ getHandle()

long com.ctre.phoenix.motion.BufferedTrajectoryPointStream.getHandle ( )
inline
Returns
handle of object

◆ Write() [1/3]

ErrorCode com.ctre.phoenix.motion.BufferedTrajectoryPointStream.Write ( TrajectoryPoint  trajPt)
inline

Write a single trajectory point into the buffer.

Parameters
trajPtTrajectory point to write.
Returns
nonzero error code if operation fails.

◆ Write() [2/3]

ErrorCode com.ctre.phoenix.motion.BufferedTrajectoryPointStream.Write ( TrajectoryPoint[]  trajPts)
inline

Writes an array of trajectory point into the buffer.

Parameters
trajPtsArray of trajectory points to write.
Returns
nonzero error code if operation fails.

◆ Write() [3/3]

ErrorCode com.ctre.phoenix.motion.BufferedTrajectoryPointStream.Write ( TrajectoryPoint[]  trajPts,
int  trajPtCount 
)
inline

Writes an array of trajectory point into the buffer.

Parameters
trajPtsArray of trajectory points to write.
trajPtCountNumber of points to write. This is capped against array length.
Returns
nonzero error code if operation fails.

The documentation for this class was generated from the following file: