 #include <PID.h>
 #include <EEPROM.h>
 #include "EEPROMAnything.h"
+#include <SerialCommand.h>
 
 #define DEBUG_MOTOR_RPM false
 

unsigned char motor_rph_low_byte = 0;
int motor_rph = 0;


void setup() {
  EEPROM_readAnything(0, xv_config);

  EEPROM_writeAnything(0, xv_config);
}

void initSerialCommands() {
  sCmd.addCommand("MOTOROFF",    motorOff);
}

void motorOff() {
  myPID.SetMode(MANUAL);
  Timer3.pwm(xv_config.motor_pwm_pin, 0);
  pwm_last = 0;
}
