|
CTRE Phoenix 6 C++ 26.70.0-alpha-2
|
Functions | |
| void | FeedEnable (wpi::units::second_t timeoutSeconds) |
| Feeds the enable signal with a timeout specified in seconds. | |
| bool | GetEnableState () |
| void | SetTransmitEnable (bool enable) |
| Sets whether to transmit the enable frame. | |
| bool | GetTransmitEnable () |
| Gets whether the enable frame is being transmitted. | |
| int | GetPhoenixVersion () |
| int | GetApiCompliancy () |
| Gets this API's compliancy version. | |
| void | LoadPhoenix () |
| Load and start the Phoenix background tasks. | |
| void | SetPhoenixDiagnosticsStartTime (wpi::units::second_t startTimeSeconds) |
| Sets the duration of the delay before starting the Phoenix diagnostics server. | |
| void ctre::phoenix6::unmanaged::FeedEnable | ( | wpi::units::second_t | timeoutSeconds | ) |
Feeds the enable signal with a timeout specified in seconds.
This function does nothing on a Systemcore during FRC use.
A timeout of 0 disables actuators.
| timeoutSeconds | Time to remain enabled in seconds |
| int ctre::phoenix6::unmanaged::GetApiCompliancy | ( | ) |
Gets this API's compliancy version.
This is purely used to check the compliancy of API against firmware, and report if there is a mismatch to the user.
| bool ctre::phoenix6::unmanaged::GetEnableState | ( | ) |
| int ctre::phoenix6::unmanaged::GetPhoenixVersion | ( | ) |
| bool ctre::phoenix6::unmanaged::GetTransmitEnable | ( | ) |
Gets whether the enable frame is being transmitted.
This function returns true on a Systemcore during FRC use.
| void ctre::phoenix6::unmanaged::LoadPhoenix | ( | ) |
Load and start the Phoenix background tasks.
This can be useful if you need the Enable/Disable functionality for CAN devices but aren't using any of the CAN device classes.
This function does NOT need to be called if you are using any of the Phoenix CAN device classes.
| void ctre::phoenix6::unmanaged::SetPhoenixDiagnosticsStartTime | ( | wpi::units::second_t | startTimeSeconds | ) |
Sets the duration of the delay before starting the Phoenix diagnostics server.
| startTimeSeconds | The delay (in seconds) before starting the server. A value of 0 will start the server immediately. A negative value will signal the server to shutdown or never start. |
| void ctre::phoenix6::unmanaged::SetTransmitEnable | ( | bool | enable | ) |
Sets whether to transmit the enable frame.
This function does nothing on a Systemcore during FRC use.
| enable | true to transmit the enable frame |