StopSignal.cpp
/// Do the main stop signal logic here.
Do the main stop signal logic here.
Do the main stop signal logic here .
void StopSignal::tick(unsigned long int currentTimeMicros)
{
  if (input->isOn())
  {
    switch (pwm->tick(currentTimeMicros))
    {
    case PWM_HIGH:
      output->open();
      break;
    case PWM_LOW:
      output->close();
      break;
    case PWM_NONE:
      break;
    }
  }
  else
  {
    output->close();
    pwm->reset();
  }
}
void StopSignal :: tick ( unsigned long int currentTimeMicros ) { if ( input -> isOn ( ) ) { switch ( pwm -> tick ( currentTimeMicros ) ) { case PWM_HIGH : output -> open ( ) ; break ; case PWM_LOW : output -> close ( ) ; break ; case PWM_NONE : break ; } } else { output -> close ( ) ; pwm -> reset ( ) ; } }
Do the main stop signal logic here.
Do the main stop signal logic here .