This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Libraries | |
#include <AltSoftSerial.h> | |
#include <Sabertooth.h> | |
#include <PID_v1.h> | |
//Constants | |
//SoftwareSerial SWSerial(NOT_A_PIN, 8); // RX on no pin (unused), TX on pin 8 (to S1) | |
AltSoftSerial altSerial; | |
Sabertooth ST(128, altSerial); // Address 128, and use SWSerial as the serial port. | |
#define leftPot A0 // pin A0 is Left Pot Input |