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.
Diff: ArduinoMath.h
- Revision:
- 0:70797f033fe0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ArduinoMath.h Mon Feb 20 11:10:08 2017 +0000 @@ -0,0 +1,18 @@ +#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 +