CTRE Phoenix 6 C++ 26.70.0-alpha-2
Loading...
Searching...
No Matches
Unmanaged.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
9#include <wpi/units/time.hpp>
10
11namespace ctre {
12namespace phoenix6 {
13namespace unmanaged {
14 /**
15 * \brief Feeds the enable signal with a timeout specified in seconds.
16 * This function does nothing on a Systemcore during FRC use.
17 *
18 * A timeout of 0 disables actuators.
19 *
20 * \param timeoutSeconds Time to remain enabled in seconds
21 */
22 void FeedEnable(wpi::units::second_t timeoutSeconds);
23
24 /**
25 * \returns true if non-FRC enabled
26 */
28
29 /**
30 * \brief Sets whether to transmit the enable frame.
31 * This function does nothing on a Systemcore during FRC use.
32 *
33 * \param enable true to transmit the enable frame
34 */
35 void SetTransmitEnable(bool enable);
36
37 /**
38 * \brief Gets whether the enable frame is being transmitted.
39 * This function returns true on a Systemcore during FRC use.
40 *
41 * \returns true if the enable frame is being transmitted
42 */
44
45 /**
46 * \returns The current version of Phoenix
47 */
49
50 /**
51 * \brief Gets this API's compliancy version.
52 *
53 * This is purely used to check the compliancy of API against firmware,
54 * and report if there is a mismatch to the user.
55 *
56 * \returns The current API compliancy
57 */
59
60 /**
61 * \brief Load and start the Phoenix background tasks.
62 *
63 * This can be useful if you need the Enable/Disable functionality for CAN
64 * devices but aren't using any of the CAN device classes.
65 *
66 * This function does NOT need to be called if you are using any of the
67 * Phoenix CAN device classes.
68 */
70
71 /**
72 * \brief Sets the duration of the delay before starting the Phoenix diagnostics server.
73 *
74 * \param startTimeSeconds The delay (in seconds) before starting the server. A
75 * value of 0 will start the server immediately. A negative
76 * value will signal the server to shutdown or never start.
77 */
78 void SetPhoenixDiagnosticsStartTime(wpi::units::second_t startTimeSeconds);
79}
80}
81}
Definition Unmanaged.hpp:13
int GetApiCompliancy()
Gets this API's compliancy version.
void SetTransmitEnable(bool enable)
Sets whether to transmit the enable frame.
void FeedEnable(wpi::units::second_t timeoutSeconds)
Feeds the enable signal with a timeout specified in seconds.
void SetPhoenixDiagnosticsStartTime(wpi::units::second_t startTimeSeconds)
Sets the duration of the delay before starting the Phoenix diagnostics server.
void LoadPhoenix()
Load and start the Phoenix background tasks.
bool GetTransmitEnable()
Gets whether the enable frame is being transmitted.
Definition ExternalFeedbackConfigs.hpp:16
Definition motor_constants.h:14