AnalogDigital angelegt, aber noch ohne Funktion

This commit is contained in:
Toberfra 2022-02-06 19:51:28 +01:00
parent 01b9353eb8
commit 6449358671
7 changed files with 21 additions and 8 deletions

View File

@ -2,15 +2,15 @@
#ifndef KLAPPENABLAUF_H #ifndef KLAPPENABLAUF_H
#define KLAPPENABLAUF_H #define KLAPPENABLAUF_H
#include "KlappenSteuerung.h"
#include "analogDigital.h"
/** /**
* class KlappenAblauf * class KlappenAblauf
* *
*/ */
class KlappenAblauf : public KlappenSteuerung class KlappenAblauf : public AnalogDigital
{ {
public: public:
// Constructors/Destructors // Constructors/Destructors
@ -20,7 +20,7 @@ public:
/** /**
* Empty Constructor * Empty Constructor
*/ */
KlappenAblauf(); //KlappenAblauf();
/** /**
* Empty Destructor * Empty Destructor

View File

@ -14,7 +14,7 @@
*/ */
KlappenSteuerung::KlappenSteuerung(int pinA, int pinB, int pinSense, int id) KlappenSteuerung::KlappenSteuerung(int pinA, int pinB, int pinSense, int id)
{ {
setPins(pinA , pinB); setMotorPins(pinA , pinB);
SetId(id); SetId(id);
this->pinSense = pinSense; this->pinSense = pinSense;

View File

@ -3,14 +3,14 @@
#define KLAPPENSTEUERUNG_H #define KLAPPENSTEUERUNG_H
#include "statusKlappen.h" #include "statusKlappen.h"
#include "motor.h" #include "KlappenAblauf.h"
/** /**
* class KlappenSteuerung * class KlappenSteuerung
* *
*/ */
class KlappenSteuerung : public Motor class KlappenSteuerung : public KlappenAblauf
{ {
public: public:
// Constructors/Destructors // Constructors/Destructors

View File

View File

@ -0,0 +1,13 @@
#ifndef ANALOG_GIGITAL_H
#define ANALOG_GIGITAL_H
#include "motor.h"
class AnalogDigital : public Motor{
};
#endif

View File

@ -7,7 +7,7 @@
void Motor::setPins(uint8_t pinA , uint8_t pinB){ void Motor::setMotorPins(uint8_t pinA , uint8_t pinB){
this->pinA = pinA; this->pinA = pinA;
this->pinB = pinB; this->pinB = pinB;
} }

View File

@ -14,7 +14,7 @@ public:
static void setup(); static void setup();
void setPins(uint8_t pinA , uint8_t pinB); void setMotorPins(uint8_t pinA , uint8_t pinB);
void setSollSpeed(int16_t speed); void setSollSpeed(int16_t speed);