CTRE Phoenix C++ 5.33.1
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"
6#include "hal/simulation/MockHooks.h"
7
8namespace ctre {
9namespace phoenix {
10namespace motorcontrol {
12 public:
14 static WPI_AutoFeedEnable* autoFeedEnable = new WPI_AutoFeedEnable();
15 return *autoFeedEnable;
16 }
17
18 private:
20 HALSIM_RegisterSimPeriodicBeforeCallback(OnPeriodic, this);
21 }
22
23 static void OnPeriodic(void* param) {
24 if (frc::DriverStation::IsEnabled()) {
26 }
27 }
28 };
29}
30}
31}
Definition: WPI_AutoFeedEnable.h:11
static WPI_AutoFeedEnable & GetInstance()
Definition: WPI_AutoFeedEnable.h:13
static void FeedEnable(int timeoutMs)
Feed the enable frame.
namespace ctre
Definition: paramEnum.h:5