Minh Nguyen / Definitions

Files at this revision

API Documentation at this revision

Comitter:
khaiminhvn
Date:
Thu Apr 15 18:46:46 2021 +0000
Parent:
23:79b3e4c9fea4
Commit message:
Added settings for the inverter

Changed in this revision

Defs_Sett.h Show annotated file Show diff for this revision Revisions of this file
--- a/Defs_Sett.h	Tue Apr 06 22:09:06 2021 +0000
+++ b/Defs_Sett.h	Thu Apr 15 18:46:46 2021 +0000
@@ -1,6 +1,10 @@
 #ifndef DEFS_SETT_H
 #define DEFS_SETT_H
 
+//INVERTER SETTINGS
+#define MAX_POWER               330             //Max power of the inverter (W)
+#define THRESHOLD_PER           0.95            //The fraction of power where the system should halt
+
 //HARDWARE SETTINGS
 #define DEBOUNCE_TIME           10000           //Debounce time for pushbutton (us)
 #define INPUT_LOGIC             1               //0 - Active Low, 1 - Active High