  * @author: Aleksander Lidtke
  * @email: alekasdner.lidtke@gmail.com
  * @url: www.aleksanderlidtke.com
- * @since:  6 Sep 2015
- * @version: 2.0.0
+ * @since: 24 Sep 2015
+ * @version: 2.1.0
  * 
  * CHANGELOG
  *  5 Sep 2015 - 1.0.0 - Alek Lidtke - released the first version.
  *  6 Sep 2015 - 2.0.0 - Alek & Artur Lidtke - derived motor class from the Module class.
+ * 24 Sep 2015 - 2.1.0 - Alek Lidtke - added command handling via dummy Modules.
  */
 
 // Custom includes.

		}
	}

	// Periodically send readings from all the sensors over serial.
	sendSensorReadings();
	
	// Reduce rate at which stuff happens.
	delay(REFRESH_RATE);
}

boolean getSerial(void)

// Pins are pairs of close-by pins with PWM and digital ones.
BrushlessDCMotor engine1 = BrushlessDCMotor("motorPortHor", THROTTLE_STEPS, MOTOR_MAX_PULSE_WIDTH,
	MOTOR_MIN_PULSE_WIDTH, MOTOR_ARM_PULSE_WIDTH, 9, 8);
BrushlessDCMotor engine2 = BrushlessDCMotor("motorStbdHor", THROTTLE_STEPS, MOTOR_MAX_PULSE_WIDTH,
	MOTOR_MIN_PULSE_WIDTH, MOTOR_ARM_PULSE_WIDTH, 6, 7);
BrushlessDCMotor engine3 = BrushlessDCMotor("motorPortVer", THROTTLE_STEPS,MOTOR_MAX_PULSE_WIDTH,
	MOTOR_MIN_PULSE_WIDTH, MOTOR_ARM_PULSE_WIDTH, 5, 4);
BrushlessDCMotor engine4 = BrushlessDCMotor("motorStbdVer", THROTTLE_STEPS, MOTOR_MAX_PULSE_WIDTH,
	MOTOR_MIN_PULSE_WIDTH, MOTOR_ARM_PULSE_WIDTH, 3, 2);

/* =============================================================================
 * MISC ACTUATOR DEFINITIONS.
 * =============================================================================
 */
Module sendSensorReadingsModule = Module("sendSensorReadings"); // Sends sensor readings over serial.

Module refreshRate = Module("refreshRate"); // Changes the delay in the main loop.

Module forwardLED = Module("forwardLED"); // Switches the forward illumination LED on or of.
const int FORWARD_LED_PIN = 12; // When this is set HIGH the forward light will switch on.

const int ON_LED_PIN = 13; // LED on the Arduino board that will be lit when the ROV is in the main loop.
