|
ENERGY MONITOR 0.2
|
electric specific classes current/voltage/power that inherit from signals class while adding thier specific properties More...
#include "signal.h"#include "signal_operation.h"#include <cmath>#include <math.h>#include <iostream>#include <stdlib.h>Go to the source code of this file.
Classes | |
| class | _current |
| class | _voltage |
| class | _power |
Macros | |
| #define | _USE_MATH_DEFINES |
Enumerations | |
| enum | power_type { INDUCTIVE = 1 , CAPACITIVE , RESISTIVE } |
| enum | pf_type { LAGGING = 1 , LEADING , SYNC } |
Functions | |
| double | tarrif_calc (double energy_in_month) |
| calculate energy cost based on how much energy was consumed in a month according to egyptian tarrif | |
electric specific classes current/voltage/power that inherit from signals class while adding thier specific properties
Definition in file electric.h.
| #define _USE_MATH_DEFINES |
Definition at line 4 of file electric.h.
| enum pf_type |
| Enumerator | |
|---|---|
| LAGGING | |
| LEADING | |
| SYNC | |
Definition at line 37 of file electric.h.
| enum power_type |
| Enumerator | |
|---|---|
| INDUCTIVE | |
| CAPACITIVE | |
| RESISTIVE | |
Definition at line 31 of file electric.h.
|
inline |
calculate energy cost based on how much energy was consumed in a month according to egyptian tarrif
| energy_in_month | (in Kilo Watt HOURS (KWH)) |
Definition at line 197 of file electric.h.