src/main/cpp/subsystems/C418/LoaderSubsystemC418.cpp
void LoaderSubsystemC418::Periodic()
{
#ifndef NOHW
    Util::Log("Load Photogate", m_photogate.Get());
    if (m_photogate.Get())
    {
        m_spike.TurnSpikeOn();
    }
    else
    {
        m_spike.TurnSpikeOff();
    }
#endif
}
// This method will be called once per scheduler run
This method will be called once per scheduler run
This method will be called once per scheduler run
void LoaderSubsystemC418::Periodic()
{
#ifndef NOHW
    Util::Log("Load Photogate", m_photogate.Get());
    if (m_photogate.Get())
    {
        m_spike.TurnSpikeOn();
    }
    else
    {
        m_spike.TurnSpikeOff();
    }
#endif
}
void LoaderSubsystemC418 :: Periodic ( ) { #ifndef NOHW Util :: Log ( " " , m_photogate . Get ( ) ) ; if ( m_photogate . Get ( ) ) { m_spike . TurnSpikeOn ( ) ; } else { m_spike . TurnSpikeOff ( ) ; } #endif }
This method will be called once per scheduler run
This method will be called once per scheduler run