From 430eeca9eb485a6f7c5aff40746254a359395acc Mon Sep 17 00:00:00 2001 From: medina5 Date: Mon, 8 Dec 2025 12:44:55 +0100 Subject: [PATCH] grafcet manuel --- main.cpp | 13 ++++++++++++- main.hpp | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 1e9713b..11496d9 100644 --- a/main.cpp +++ b/main.cpp @@ -6,13 +6,19 @@ #include "main.hpp" #include "AutomForArduino.cpp" +#include +#include +#include +#include +#include + // Constantes de fonctionnement #define LEVEL_MIN 2 #define FLOW_PER_PUMP 150 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; unsigned short pompe1, pompe2, pompe3, pompe4; // bouton des pompes 0 (arrêt) / 1 (marche) unsigned short pompe1_old, pompe2_old, pompe3_old, pompe4_old; @@ -778,3 +784,8 @@ void ProcessPrometheus() { } + +void ProcessMQTT(mqtt::async_client* client) +{ + +} diff --git a/main.hpp b/main.hpp index 73a7cdc..4f0ff79 100644 --- a/main.hpp +++ b/main.hpp @@ -1,3 +1,6 @@ +#undef timeout +#include "mqtt/async_client.h" + void ConsoleInit(); void LireClavier(int ch); @@ -16,6 +19,8 @@ void Process(); void InitPrometheus(); void ProcessPrometheus(); +void ProcessMQTT(mqtt::async_client* client); + double SimulConsoSinusoidale(long t); double SimulConsoBrown(double valeur_precedente);