abcalibrate library
v0.91
Self calibration library for the Parallax ActivityBot
|
This library has a function you can call to calibrate your ActivityBot. Example code that uses this library to calibrate the ActivityBot is here:
http://learn.parallax.com/activitybot
Calibration instructions that accompany the example code are included in the tutorial.
More...
#include "servo.h"
#include "simpletools.h"
#include "fdserial.h"
Go to the source code of this file.
Macros | |
#define | _ActivityBot_EE_Start_ 63418 |
ActivityBot EEPROM calibration data start address. | |
#define | _ActivityBot_EE_Pins_ 12 |
#define | _ActivityBot_EE_Trims_ 28 |
#define | _ActivityBot_EE_Left_ 52 |
#define | _ActivityBot_EE_Right_ 1052 |
#define | _ActivityBot_EE_End_ 63418 + 2052 |
ActivityBot EEPROM calibration data end address. |
Functions | |
void | cal_activityBot () |
Run the ActivityBot calibration function. Let it run until the P26 and P27 lights turn off. It'll take about 1 minute, 20 seconds. | |
void | cal_servoPins (int servoPinLeft, int servoPinRight) |
Set the ActivityBot's servo pin connections to something other than the default P12 (left servo) and P13 (right servo). This function stores values in EEPROM where the abdrive library can access them. So, the abdrive library will expect the servos to be connected to the I/O pins specified by the servoPinLeft and servoPinRight parameters. | |
void | cal_encoderPins (int encPinLeft, int encPinRight) |
Set the ActivityBot's servo pin connections to something other than the default P14 (left encoder) and P15 (right encoder). This function stores values in EEPROM where the abdrive library can access them. So, the abdrive library will expect the encoders to be connected to the I/O pins specified by the encPinLeft and encPinRight parameters. |
This library has a function you can call to calibrate your ActivityBot. Example code that uses this library to calibrate the ActivityBot is here:
http://learn.parallax.com/activitybot
Calibration instructions that accompany the example code are included in the tutorial.
void cal_encoderPins | ( | int | encPinLeft, |
int | encPinRight | ||
) |
Set the ActivityBot's servo pin connections to something other than the default P14 (left encoder) and P15 (right encoder). This function stores values in EEPROM where the abdrive library can access them. So, the abdrive library will expect the encoders to be connected to the I/O pins specified by the encPinLeft and encPinRight parameters.
encPinLeft | Number of I/O pin connected to the left encoder. |
encPinRight | Number of I/O pin connected to the right encoder. |
void cal_servoPins | ( | int | servoPinLeft, |
int | servoPinRight | ||
) |
Set the ActivityBot's servo pin connections to something other than the default P12 (left servo) and P13 (right servo). This function stores values in EEPROM where the abdrive library can access them. So, the abdrive library will expect the servos to be connected to the I/O pins specified by the servoPinLeft and servoPinRight parameters.
servoPinLeft | Number of I/O pin connected to the left servo. |
servoPinRight | Number of I/O pin connected to the right servo. |