 elapsedMicros testTime;
 elapsedMicros commandTime;
 
+elapsedMicros tachTime;
+volatile unsigned long lastTachPulse = 0;
+uint8_t pulsesPerRev = 2;
+
 elapsedMillis buttonTime;
 bool buttonRunning = false;
 bool buttonLatch = false;

	int commandValue;
	char str[80];
	unsigned long time;

	//check if we're sitting in an overflow state and dump the sample if needed
	if (writeBuffer[writeIndex].full==true) {

    a3 = getVolts( (uint16_t)ADCresult.result_adc0 );
    a4 = getAmps( (uint16_t)ADCresult.result_adc1 );
	*/

	rawTemp = (uint16_t)adc->analogRead(T1_PIN, ADC_0);
	a1 = getTemp(rawTemp);
