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.
Revision 24:0dc15f403424, committed 2021-04-15
- 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