mirror of
https://gitlab.com/fabinfra/fabhardware/absaugungsklappensteuerung.git
synced 2025-03-12 23:01:52 +01:00
AnalogDigital angelegt, aber noch ohne Funktion
This commit is contained in:
parent
01b9353eb8
commit
6449358671
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
0
Arduino/motor/src/analogDigital.cpp
Normal file
0
Arduino/motor/src/analogDigital.cpp
Normal file
13
Arduino/motor/src/analogDigital.h
Normal file
13
Arduino/motor/src/analogDigital.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef ANALOG_GIGITAL_H
|
||||||
|
#define ANALOG_GIGITAL_H
|
||||||
|
|
||||||
|
#include "motor.h"
|
||||||
|
|
||||||
|
class AnalogDigital : public Motor{
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user