Package com.ctre.phoenix.motion
Class MotionProfileStatus
java.lang.Object
com.ctre.phoenix.motion.MotionProfileStatus
Motion Profile Status This is simply a data transer object.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
True if the active trajectory point is not empty, false otherwise.int
The number of points in the low level Talon/Victor buffer.boolean
Set if isUnderrun ever gets set.boolean
True if the active trajectory point is the last point of the profileboolean
This is set if Talon/Victor needs to shift a point from its buffer into the active trajectory point however the buffer is empty.The current output mode of the motion profile executer (disabled, enabled, or hold).int
The selected PID[0] profile slot of current profileint
The selected auxiliary PID[1] profile slot of current profileint
The duration in ms of current trajectory pointint
The number of points in the top trajectory buffer.int
The available empty slots in the trajectory buffer. -
Constructor Summary
-
Method Summary
-
Field Details
-
topBufferRem
The available empty slots in the trajectory buffer. The robot API holds a "top buffer" of trajectory points, so your applicaion can dump several points at once. The API will then stream them into the Talon's low-level buffer, allowing the Talon to act on them. -
topBufferCnt
The number of points in the top trajectory buffer. -
btmBufferCnt
The number of points in the low level Talon/Victor buffer. -
hasUnderrun
Set if isUnderrun ever gets set. Only is cleared by clearMotionProfileHasUnderrun() to ensure robot logic can react or instrument it. -
isUnderrun
This is set if Talon/Victor needs to shift a point from its buffer into the active trajectory point however the buffer is empty. This gets cleared automatically when is resolved. -
activePointValid
True if the active trajectory point is not empty, false otherwise. The members in activePoint are only valid if this signal is set. -
isLast
True if the active trajectory point is the last point of the profile -
profileSlotSelect
The selected PID[0] profile slot of current profile -
outputEnable
The current output mode of the motion profile executer (disabled, enabled, or hold). When changing the set() value in MP mode, it's important to check this signal to confirm the change takes effect before interacting with the top buffer. -
timeDurMs
The duration in ms of current trajectory point -
profileSlotSelect1
The selected auxiliary PID[1] profile slot of current profile
-
-
Constructor Details
-
MotionProfileStatus
public MotionProfileStatus()
-