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
#define KLAPPENABLAUF_H
#include "KlappenSteuerung.h"
#include "analogDigital.h"
/**
* class KlappenAblauf
*
*/
class KlappenAblauf : public KlappenSteuerung
class KlappenAblauf : public AnalogDigital
{
public:
// Constructors/Destructors
@ -20,7 +20,7 @@ public:
/**
* Empty Constructor
*/
KlappenAblauf();
//KlappenAblauf();
/**
* Empty Destructor

View File

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

View File

@ -3,14 +3,14 @@
#define KLAPPENSTEUERUNG_H
#include "statusKlappen.h"
#include "motor.h"
#include "KlappenAblauf.h"
/**
* class KlappenSteuerung
*
*/
class KlappenSteuerung : public Motor
class KlappenSteuerung : public KlappenAblauf
{
public:
// 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->pinB = pinB;
}

View File

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