Rearranged some lines for readability

This commit is contained in:
Patrick Goebel 2015-12-07 06:51:56 -08:00
parent 5f0125da8b
commit eacd926753

View File

@ -66,8 +66,11 @@
#define USE_SERVOS // Enable use of PWM servos as defined in servos.h #define USE_SERVOS // Enable use of PWM servos as defined in servos.h
//#undef USE_SERVOS // Disable use of PWM servos //#undef USE_SERVOS // Disable use of PWM servos
/* Serial port baud rate */ /* Include servo support if required */
#define BAUDRATE 57600 #ifdef USE_SERVOS
#include <Servo.h>
#include "servos.h"
#endif
/* Maximum PWM signal */ /* Maximum PWM signal */
#define MAX_PWM 255 #define MAX_PWM 255
@ -84,12 +87,6 @@
/* Sensor functions */ /* Sensor functions */
#include "sensors.h" #include "sensors.h"
/* Include servo support if required */
#ifdef USE_SERVOS
#include <Servo.h>
#include "servos.h"
#endif
#ifdef USE_BASE #ifdef USE_BASE
/* Motor driver function definitions */ /* Motor driver function definitions */
#include "motor_driver.h" #include "motor_driver.h"
@ -116,6 +113,7 @@
#endif #endif
/* Variable initialization */ /* Variable initialization */
#define BAUDRATE 57600
// A pair of varibles to help parse serial commands (thanks Fergs) // A pair of varibles to help parse serial commands (thanks Fergs)
int arg = 0; int arg = 0;