Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix C++
5.35.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Enumerations
a
c
d
e
f
g
i
l
m
n
p
r
s
t
v
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
f
g
i
l
m
n
o
p
q
r
s
t
u
Related Symbols
Files
File List
File Members
All
c
d
g
i
j
k
l
m
p
s
t
w
Functions
c
j
p
t
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
WPI_AutoFeedEnable.h
Go to the documentation of this file.
1
/* Copyright (C) Cross The Road Electronics 2024 */
2
#pragma once
3
4
#include "frc/DriverStation.h"
5
#include "
ctre/phoenix/unmanaged/Unmanaged.h
"
6
#include "hal/simulation/MockHooks.h"
7
8
namespace
ctre
{
9
namespace
phoenix {
10
namespace
motorcontrol {
11
class
WPI_AutoFeedEnable
{
12
public
:
13
static
WPI_AutoFeedEnable
&
GetInstance
() {
14
static
WPI_AutoFeedEnable
* autoFeedEnable =
new
WPI_AutoFeedEnable
();
15
return
*autoFeedEnable;
16
}
13
static
WPI_AutoFeedEnable
&
GetInstance
() {
…
}
17
18
private
:
19
WPI_AutoFeedEnable
() {
20
HALSIM_RegisterSimPeriodicBeforeCallback(OnPeriodic,
this
);
21
}
22
23
static
void
OnPeriodic(
void
* param) {
24
if
(frc::DriverStation::IsEnabled()) {
25
unmanaged::Unmanaged::FeedEnable
(100);
26
}
27
}
28
};
11
class
WPI_AutoFeedEnable
{
…
};
29
}
30
}
31
}
Unmanaged.h
ctre::phoenix::motorcontrol::WPI_AutoFeedEnable
Definition
WPI_AutoFeedEnable.h:11
ctre::phoenix::motorcontrol::WPI_AutoFeedEnable::GetInstance
static WPI_AutoFeedEnable & GetInstance()
Definition
WPI_AutoFeedEnable.h:13
ctre::phoenix::unmanaged::Unmanaged::FeedEnable
static void FeedEnable(int timeoutMs)
Feed the enable frame.
ctre
WPI Compliant CANcoder class.
Definition
CANCoderStatusFrame.h:4
ctre
phoenix
motorcontrol
WPI_AutoFeedEnable.h
Generated by
1.12.0