mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Tweaked README to simplify using the USE_BASE and USE_SERVOS directives
This commit is contained in:
parent
9e3ae7c939
commit
cbbc0d6e8a
26
README.md
26
README.md
@ -13,7 +13,6 @@ Features of the stack include:
|
|||||||
* Can control digital outputs (e.g. turn a switch or LED on and off)
|
* Can control digital outputs (e.g. turn a switch or LED on and off)
|
||||||
|
|
||||||
* Support for PWM servos
|
* Support for PWM servos
|
||||||
|
|
||||||
* Configurable base controller if using the required hardware
|
* Configurable base controller if using the required hardware
|
||||||
|
|
||||||
The stack includes a base controller for a differential drive
|
The stack includes a base controller for a differential drive
|
||||||
@ -151,19 +150,16 @@ Choose one of the supported motor controllers by uncommenting its #define statem
|
|||||||
|
|
||||||
Choose a supported encoder library by by uncommenting its #define statement and commenting out any others. At the moment, only the Robogaia Mega Encoder shield is supported and it is chosen by default.
|
Choose a supported encoder library by by uncommenting its #define statement and commenting out any others. At the moment, only the Robogaia Mega Encoder shield is supported and it is chosen by default.
|
||||||
|
|
||||||
If you want to control PWM servos attached to your controller, change
|
If you want to control PWM servos attached to your controller, look for the line:
|
||||||
the two lines that look like this:
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
//#define USE_SERVOS
|
|
||||||
#undef USE_SERVOS
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
to this:
|
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
#define USE_SERVOS
|
#define USE_SERVOS
|
||||||
//#undef USE_SERVOS
|
</pre>
|
||||||
|
|
||||||
|
and make sure it is not commented out like this:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
//#define USE_SERVOS
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
You must then edit the include file servos.h and change the N_SERVOS
|
You must then edit the include file servos.h and change the N_SERVOS
|
||||||
@ -473,21 +469,19 @@ follow the instructions below so that you can still use your
|
|||||||
Arduino-compatible controller to read sensors and control PWM servos.
|
Arduino-compatible controller to read sensors and control PWM servos.
|
||||||
|
|
||||||
First, you need to edit the ROSArduinoBridge sketch. At the top of
|
First, you need to edit the ROSArduinoBridge sketch. At the top of
|
||||||
the file, change the two lines that look like this:
|
the file comment out the line:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
#define USE_BASE
|
#define USE_BASE
|
||||||
//#undef USE_BASE
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
to this:
|
so that it looks like this:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
//#define USE_BASE
|
//#define USE_BASE
|
||||||
#undef USE_BASE
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
**NOTE:** You also need to comment out the line that looks like this in the file encoder_driver.ino:
|
**NOTE:** If you are using a version of the Arduino IDE previous to 1.6.6, you also need to comment out the line that looks like this in the file encoder_driver.ino:
|
||||||
|
|
||||||
#include "MegaEncoderCounter.h"
|
#include "MegaEncoderCounter.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user