Motor driver fix and extension (auto switch PWM/NON PWM, Motor Quota)

This commit is contained in:
2020-05-07 00:04:50 +03:00
parent 08f251bc63
commit 7b9c474c19
2 changed files with 54 additions and 12 deletions

View File

@@ -8,6 +8,13 @@
#define POS_ERR 2
#endif
// The number of simultaniusly working motors
#ifndef MOTOR_QUOTE
#define MOTOR_QUOTE 2
#endif
static int8_t motorQuote = MOTOR_QUOTE;
class out_Motor : public abstractOut {
public: