Provides the basic Functions to Controll the Door.
More...
#include <Door.h>
Provides the basic Functions to Controll the Door.
Definition at line 22 of file Door.h.
◆ Door()
Door::Door |
( |
int |
positionClosed, |
|
|
int |
positionOpen |
|
) |
| |
Construct a new Door object.
positionOpen > positionClosed
- Parameters
-
positionOpen | - Position in which the Door is Open |
positionClosed | - Position in which the Door is Closed |
Definition at line 14 of file Door.cpp.
◆ open()
Opens the Door one Step per Function-Call.
- Returns
- true - The Door is open
-
false - The Door is closed
- Bug:
- Example how do document a bug in doxygen
Definition at line 22 of file Door.cpp.
◆ close()
Closes the Door one Step per Function-Call.
- Returns
- true - The Door is closed
-
false - The Door is open
Definition at line 34 of file Door.cpp.
◆ init()
Initialisen the Door in closed Position.
Definition at line 47 of file Door.cpp.
◆ pPosClosed
const int Door::pPosClosed |
|
private |
Position of the closed door.
Definition at line 53 of file Door.h.
◆ pPosOpen
Position of the open door.
Definition at line 54 of file Door.h.
◆ pActualPos
Initial door position somwhere between.
Definition at line 55 of file Door.h.
The documentation for this class was generated from the following files: