code/atmel_digitalregler/main.cpp
ISR(TIMER4_CAPT_vect)
{
  TCNT4 = 0;
  speed_time_current = (time_counter * 0.024992f + TIMER_FREQUENCY * static_cast<float>(ICR4));
  speed_current      = (0.15*2*PI/speed_time_current);
  time_counter       = 0;
  flag  = 1;
}
// ISR ============================================================================================
/* SPEED CAPTURE
 * The capture feature is used to get the speed of the wheel. By adding the timer value and
 * the overflow times (below) the total amount of time from one impulse to the next
 * impulse can be calculated.
 */
ISR
SPEED CAPTURE
The capture feature is used to get the speed of the wheel. By adding the timer value and
the overflow times (below) the total amount of time from one impulse to the next
impulse can be calculated.
ISR SPEED CAPTURE The capture feature is used to get the speed of the wheel . By adding the timer value and the overflow times ( below ) the total amount of time from one impulse to the next impulse can be calculated .
ISR(TIMER4_CAPT_vect)
{
  TCNT4 = 0;
  speed_time_current = (time_counter * 0.024992f + TIMER_FREQUENCY * static_cast<float>(ICR4));
  speed_current      = (0.15*2*PI/speed_time_current);
  time_counter       = 0;
  flag  = 1;
}
ISR ( TIMER4_CAPT_vect ) { TCNT4 = 0 ; speed_time_current = ( time_counter * 0.024992f + TIMER_FREQUENCY * static_cast < float > ( ICR4 ) ) ; speed_current = ( 0.15 * 2 * PI / speed_time_current ) ; time_counter = 0 ; flag = 1 ; }
ISR
SPEED CAPTURE
 The capture feature is used to get the speed of the wheel.
ISR SPEED CAPTURE The capture feature is used to get the speed of the wheel .