Package com.ctre.phoenix.motion
Class BufferedTrajectoryPointStream
java.lang.Object
com.ctre.phoenix.motion.BufferedTrajectoryPointStream
public class BufferedTrajectoryPointStream extends Object
Stream of trajectory points for Talon/Victor motion profiling.
-
Constructor Summary
Constructors Constructor Description BufferedTrajectoryPointStream()
-
Method Summary
Modifier and Type Method Description ErrorCode
Clear()
Clear all trajectory points.long
getHandle()
ErrorCode
Write(TrajectoryPoint trajPt)
Write a single trajectory point into the buffer.ErrorCode
Write(TrajectoryPoint[] trajPts)
Writes an array of trajectory point into the buffer.ErrorCode
Write(TrajectoryPoint[] trajPts, int trajPtCount)
Writes an array of trajectory point into the buffer.
-
Constructor Details
-
Method Details
-
Clear
Clear all trajectory points.- Returns:
- nonzero error code if operation fails.
-
Write
Write a single trajectory point into the buffer.- Parameters:
trajPt
- Trajectory point to write.- Returns:
- nonzero error code if operation fails.
-
Write
Writes an array of trajectory point into the buffer.- Parameters:
trajPts
- Array of trajectory points to write.trajPtCount
- Number of points to write. This is capped against array length.- Returns:
- nonzero error code if operation fails.
-
Write
Writes an array of trajectory point into the buffer.- Parameters:
trajPts
- Array of trajectory points to write.- Returns:
- nonzero error code if operation fails.
-
getHandle
- Returns:
- handle of object
-