mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-04 11:44:08 +05:30
Rearranged some lines for readability
This commit is contained in:
parent
5f0125da8b
commit
eacd926753
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user