CTRE Phoenix C++ 5.33.1
|
Motion Profile Status This is simply a data transer object. More...
#include <ctre/phoenix/motion/MotionProfileStatus.h>
Public Attributes | |
size_t | topBufferRem |
The available empty slots in the trajectory buffer. More... | |
size_t | topBufferCnt |
The number of points in the top trajectory buffer. More... | |
int | btmBufferCnt |
The number of points in the low level Talon/Victor buffer. More... | |
bool | hasUnderrun |
Set if isUnderrun ever gets set. More... | |
bool | 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. More... | |
bool | activePointValid |
True if the active trajectory point is not empty, false otherwise. More... | |
bool | isLast |
True if the active trajectory point is the last point of the profile. More... | |
int | profileSlotSelect0 |
The selected PID[0] profile slot of current profile. More... | |
int | profileSlotSelect1 |
The selected auxiliary PID[1] profile slot of current profile. More... | |
ctre::phoenix::motion::SetValueMotionProfile | outputEnable |
The current output mode of the motion profile executer (disabled, enabled, or hold). More... | |
int | timeDurMs |
The applied duration of the active trajectory point. More... | |
Motion Profile Status This is simply a data transer object.
bool ctre::phoenix::motion::MotionProfileStatus::activePointValid |
True if the active trajectory point is not empty, false otherwise.
The members in activePoint are only valid if this signal is set.
int ctre::phoenix::motion::MotionProfileStatus::btmBufferCnt |
The number of points in the low level Talon/Victor buffer.
bool ctre::phoenix::motion::MotionProfileStatus::hasUnderrun |
Set if isUnderrun ever gets set.
Can be manually cleared by ClearMotionProfileHasUnderrun() or automatically cleared by StartMotionProfile().
bool ctre::phoenix::motion::MotionProfileStatus::isLast |
True if the active trajectory point is the last point of the profile.
bool ctre::phoenix::motion::MotionProfileStatus::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.
ctre::phoenix::motion::SetValueMotionProfile ctre::phoenix::motion::MotionProfileStatus::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.
int ctre::phoenix::motion::MotionProfileStatus::profileSlotSelect0 |
The selected PID[0] profile slot of current profile.
int ctre::phoenix::motion::MotionProfileStatus::profileSlotSelect1 |
The selected auxiliary PID[1] profile slot of current profile.
int ctre::phoenix::motion::MotionProfileStatus::timeDurMs |
The applied duration of the active trajectory point.
size_t ctre::phoenix::motion::MotionProfileStatus::topBufferCnt |
The number of points in the top trajectory buffer.
size_t ctre::phoenix::motion::MotionProfileStatus::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.