9#include "frc/DriverStation.h"
11#include "hal/simulation/MockHooks.h"
22 return *autoFeedEnable;
26 int32_t m_simPeriodicUid{-1};
30 m_simPeriodicUid = HALSIM_RegisterSimPeriodicBeforeCallback(OnPeriodic,
this);
34 if (m_simPeriodicUid >= 0)
36 HALSIM_CancelSimPeriodicBeforeCallback(m_simPeriodicUid);
37 m_simPeriodicUid = -1;
41 static void OnPeriodic(
void *param)
44 if (frc::DriverStation::IsEnabled())
Definition: AutoFeedEnable.hpp:17
static AutoFeedEnable & GetInstance()
Definition: AutoFeedEnable.hpp:19
CTREXPORT void FeedEnable(int timeoutMs)
Feed the robot enable.
Definition: string_util.hpp:14