 		else Serial.println("Ignore throttle pedal");
 		break;
 	}
-
-}
+}

            if (!runRamp) {
                throttleval = 0;
            }
            dmoc.setThrottle(throttleval * (int)12); //with throttle 0-80 this sets throttle to 0 - 960
	}
	else {
            dmoc.setThrottle(throttle.getThrottle());
//            Serial.println(throttle.getThrottle());  //just for debugging
		}
		dmoc.handleTick();
	}
}


/*Single single character interpreter of commands over
serial connection. There is a help menu (press H or h or ?)
*/
void serialEvent() {
	int incoming;
	incoming = Serial.read();
	if (incoming == -1) return;
	switch (incoming) {
	case 'h':

#include "MCP2515.h"
#include "pedal_pot.h"
#include "device.h"
#include "motorctrl.h"
#include "dmoc.h"
#include "timer.h"

