You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
445 B
23 lines
445 B
// Library for managing hardware |
|
|
|
#ifndef _hardware_H_ |
|
#define _hardware_H_ |
|
|
|
#define SOLENOID_STOP 0 |
|
#define SOLENOID_INFLATE 1 |
|
#define SOLENOID_DEFLATE 2 |
|
|
|
#define RELAY1_PIN 11 |
|
#define RELAY2_PIN 7 |
|
|
|
#define PRESSURE_SENSOR_PIN A0 |
|
|
|
extern float simulatedPressure; |
|
|
|
void initSimulation(); |
|
void tickSimulation(); |
|
void measurePressure(float &pressureValue); |
|
void resamplePressure(float &pressureValue); |
|
void setSoleniod(int solenoidState); |
|
|
|
#endif
|
|
|