![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
d
Diff: Robot.h
- Revision:
- 0:d4a8d6a32b36
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Robot.h Wed Mar 08 16:49:14 2017 +0000 @@ -0,0 +1,27 @@ +#ifndef MOTORS_H +#define MOTORS_H + +#include <cstdlib> +#include <mbed.h> + + +#include "mbed.h" + +/* Declarations for the Motors in the Robot in order to drive -------- */ +class Robot +{ +public: + Robot(PwmOut* left, PwmOut* right, DigitalOut* enable); + void drive(); + +private: + PwmOut* left; + PwmOut* right; + + DigitalOut* powerSignal; + DigitalIn* errorSignal; + DigitalIn* overtemperatur; + +}; + +#endif