-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- files
energy_meter/main.candenergy_meter/core.h - In order to optimize the system resource, we have to reduce the memory required by tread sampling and logging.
char em_sampling_stack[THREAD_STACKSIZE_SMALL];
char em_logging_stack[THREAD_STACKSIZE_LARGE];
- Instead, to use a type
doublefor the struct we can use twouint8_tto store the decimal and the unit part
/* @em_realtime contains all notable datas:
* -rms_c/v▸ : real time values, they're update each sec
* -rms_*_1m▸ : last minute average, they're update each 60 sec
* -log_1m_ready : true when last minute average is ready
*/
struct em_realtime {
▸ double rms_c, rms_v;
▸ double rms_c_1m, rms_v_1m;
▸ bool log_1m_ready;
};
/* @em_loggin contains all temporary datas
*/
struct em_loggin {
▸ double c[60], v[60];
};
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request