Library for Sabertooth motor driver ported from the oficial Arduino library. Packetized Serial Mode

I ported the official arduino library for Sabertooth dual motor drivers. In the porting process I did not used const methods as the original library does, but the functionality stays the same. I also added some methods that I find useful. According to the documentation of the driver this code should be compatible with SyRen drivers.

ArduinoMath.h

Committer:
Elefantul_umilit
Date:
2017-09-21
Revision:
1:013fa8604413
Parent:
0:70797f033fe0

File content as of revision 1:013fa8604413:

#ifndef _ARDUINO_MATH_H_
#define _ARDUINO_MATH_H_

//those methods do exactly the same things as the corespondent Arduino methods do
//see the Arduino documentation for more info.
class ArduinoMath{
  public:
    static int constrain(int, int, int);
    static int min(int, int);
    static int max(int, int);
    static int map(int, int, int, int, int);
    static int abs(int);
  private:
    ArduinoMath(){};
};

#endif