Peritoneal Dialysis Capstone
Controlling catheter for peritoneal dialysis
Loading...
Searching...
No Matches
CatheterController.h
Go to the documentation of this file.
1
4
5#ifndef CATHER_CONTROLLER_H
6#define CATHER_CONTROLLER_H
7
8#include <Channel.h>
9#include <IDisplay.h>
10#include <IHAL.h>
11#include <PWMOutput.h>
12#include <PotentiometerInput.h>
13
19private:
27
28public:
38 IHAL &hal, int inputPin1, int outputPin1, int inputPin2, int outputPin2,
40 );
41
45 void update();
46};
47
48#endif // CATHER_CONTROLLER_H
PotentiometerInput input2
Definition CatheterController.h:22
IDisplay & display
Definition CatheterController.h:26
PWMOutput output2
Definition CatheterController.h:23
PWMOutput output1
Definition CatheterController.h:21
CatheterController(IHAL &hal, int inputPin1, int outputPin1, int inputPin2, int outputPin2, IDisplay &display)
Definition CatheterController.cpp:5
PotentiometerInput input1
Definition CatheterController.h:20
Channel channel1
Definition CatheterController.h:24
Channel channel2
Definition CatheterController.h:25
void update()
Update both channels and display the output duty cycles.
Definition CatheterController.cpp:13
A control channel from one input to one output.
Definition Channel.h:14
An interface for displaying important values related to the system.
Definition IDisplay.h:13
A hardware abstraction layer interface.
Definition IHAL.h:29
The implementation of IOutput.
Definition PWMOutput.h:14
The implementation of IInput.
Definition PotentiometerInput.h:14
ArduinoHAL hal(BAUD_RATE)