Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PID_Int.h
00001 #ifndef PID_INT_H 00002 #define PID_INT_H 00003 00004 /********************************** 00005 Inclusioni 00006 **********************************/ 00007 00008 #include "mbed.h" 00009 #include "millis.h" 00010 #include "PID.h" 00011 #include "PID_Def.h" 00012 00013 /********************************** 00014 Strutture 00015 **********************************/ 00016 00017 /*! \struct Context 00018 * 00019 * \brief Struttura che contiene le variabili di contesto. 00020 * 00021 */ 00022 struct Context { 00023 00024 double Input; /* Temperatura della camera climatica misurata dalla termocoppia. */ 00025 double Output; /* Valore in uscita dal PID. */ 00026 00027 int Evento; /* Evento legato alla variazione dei parametri Kp, Ki, Kd o setpoint. */ 00028 00029 double Setpoint; /* Temperatura da raggiungere. */ 00030 00031 double Kp; /* Costante proporzionale del PID. */ 00032 double Ki; /* Costante integrativa del PID. */ 00033 double Kd; /* Costante derivativa del PID. */ 00034 00035 }; 00036 00037 /********************************** 00038 Enumerativi 00039 **********************************/ 00040 00041 /*! \enum Event 00042 * 00043 * \brief Definisce gli eventi legati alla variazione dei parametri Kp, Ki, Kd o setpoint. 00044 * 00045 */ 00046 enum Event { 00047 00048 Nessuna_modifica = 0, 00049 Modifica_Kp, 00050 Modifica_Ki, 00051 Modifica_Kd, 00052 Modifica_Setpoint 00053 }; 00054 00055 /********************************** 00056 Prototipi funzioni 00057 **********************************/ 00058 00059 double getTemperature_thermocouple(); 00060 00061 #endif
Generated on Wed Jul 27 2022 15:31:02 by
1.7.2