grafcet manuel
This commit is contained in:
13
main.cpp
13
main.cpp
@@ -6,13 +6,19 @@
|
|||||||
#include "main.hpp"
|
#include "main.hpp"
|
||||||
#include "AutomForArduino.cpp"
|
#include "AutomForArduino.cpp"
|
||||||
|
|
||||||
|
#include <prometheus/counter.h>
|
||||||
|
#include <prometheus/gauge.h>
|
||||||
|
#include <prometheus/histogram.h>
|
||||||
|
#include <prometheus/registry.h>
|
||||||
|
#include <prometheus/exposer.h>
|
||||||
|
|
||||||
// Constantes de fonctionnement
|
// Constantes de fonctionnement
|
||||||
#define LEVEL_MIN 2
|
#define LEVEL_MIN 2
|
||||||
#define FLOW_PER_PUMP 150
|
#define FLOW_PER_PUMP 150
|
||||||
|
|
||||||
WINDOW *window;
|
WINDOW *window;
|
||||||
|
|
||||||
int etape = 10; // Étape du grafcet : début Automatique
|
int etape = 0; // Étape du grafcet : début Automatique
|
||||||
int bp_mode, bp_mode_fm;
|
int bp_mode, bp_mode_fm;
|
||||||
unsigned short pompe1, pompe2, pompe3, pompe4; // bouton des pompes 0 (arrêt) / 1 (marche)
|
unsigned short pompe1, pompe2, pompe3, pompe4; // bouton des pompes 0 (arrêt) / 1 (marche)
|
||||||
unsigned short pompe1_old, pompe2_old, pompe3_old, pompe4_old;
|
unsigned short pompe1_old, pompe2_old, pompe3_old, pompe4_old;
|
||||||
@@ -778,3 +784,8 @@ void ProcessPrometheus()
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ProcessMQTT(mqtt::async_client* client)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
5
main.hpp
5
main.hpp
@@ -1,3 +1,6 @@
|
|||||||
|
#undef timeout
|
||||||
|
#include "mqtt/async_client.h"
|
||||||
|
|
||||||
void ConsoleInit();
|
void ConsoleInit();
|
||||||
|
|
||||||
void LireClavier(int ch);
|
void LireClavier(int ch);
|
||||||
@@ -16,6 +19,8 @@ void Process();
|
|||||||
void InitPrometheus();
|
void InitPrometheus();
|
||||||
void ProcessPrometheus();
|
void ProcessPrometheus();
|
||||||
|
|
||||||
|
void ProcessMQTT(mqtt::async_client* client);
|
||||||
|
|
||||||
double SimulConsoSinusoidale(long t);
|
double SimulConsoSinusoidale(long t);
|
||||||
double SimulConsoBrown(double valeur_precedente);
|
double SimulConsoBrown(double valeur_precedente);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user