Package com.ctre.phoenix.motion
Class BufferedTrajectoryPointStream
java.lang.Object
com.ctre.phoenix.motion.BufferedTrajectoryPointStream
Stream of trajectory points for Talon/Victor motion profiling.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear()
Clear all trajectory points.long
Write
(TrajectoryPoint trajPt) Write a single trajectory point into the buffer.Write
(TrajectoryPoint[] trajPts) Writes an array of trajectory point into the buffer.Write
(TrajectoryPoint[] trajPts, int trajPtCount) Writes an array of trajectory point into the buffer.
-
Constructor Details
-
BufferedTrajectoryPointStream
public BufferedTrajectoryPointStream()
-
-
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
-