Skip to content

Commit

Permalink
Try DEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
FredM67 committed Mar 9, 2024
1 parent 8ca1cd4 commit 1106590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mk2_3phase_RFdatalog_temp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ inline void printForSerialText()
{
Serial.print(F("/"));
Serial.print(relays.get_average());
Serial.print(F("/"));
Serial.print(relays.get_averageD());
}

for (phase = 0; phase < NO_OF_PHASES; ++phase)
Expand Down
5 changes: 5 additions & 0 deletions Mk2_3phase_RFdatalog_temp/utils_relay.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ class RelayEngine
return ewma_average.getAverageS();
}

inline static auto get_averageD()
{
return ewma_average.getAverageD();
}

/**
* @brief Update the sliding average
*
Expand Down

0 comments on commit 1106590

Please sign in to comment.