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

		else Serial.println("End Ramp Test");
		break;
	case 'd':
		dmoc.setGear(DMOC::DRIVE);
		Serial.println("forward");
		break;
	case 'n':
		dmoc.setGear(DMOC::NEUTRAL);
		Serial.println("neutral");
		break;
	case 'r':
		dmoc.setGear(DMOC::REVERSE);
		Serial.println("reverse");
		break;
	case 'D':
		dmoc.setOpState(DMOC::DISABLED);
		Serial.println("disabled");
		break;
	case 'S':
		dmoc.setOpState(DMOC::STANDBY);
		Serial.println("standby");
		break;
	case 'E':
		dmoc.setOpState(DMOC::ENABLE);
		Serial.println("enabled");
		break;
	case 'x':

}


//Note that the loop uses the motorcontroller object which is of the MOTORCTRL class. This allows
//the loop to be generic while still supporting a variety of hardware. Let's try to keep it this way.
void loop() {
	static byte dotTick = 0;
	static byte throttleval = 0;
	static byte count = 0;
	if (CAN.GetRXFrame(message)) {
		motorcontroller->handleFrame(message);
	}
	if (tickReady) {
		//if (dotTick == 0) Serial.print('.'); //print . every 256 ticks (2.56 seconds)
