3-phase PV router
Loading...
Searching...
No Matches
OldImplementation Struct Reference

Public Member Functions

float getAveragePower () const
 Get average power per sample.
 
int16_t getOffsetAsADC () const
 Get DC offset as ADC value.
 
float getRmsVoltage () const
 Get RMS voltage (relative, not calibrated)
 
void processCurrentRawSample (int16_t rawSample)
 Process current sample and calculate power (old method)
 
void processMinusHalfCycle ()
 Update DC filter at end of half cycle (old method)
 
void processPolarity (int16_t rawSample)
 Process voltage sample (old method)
 
void processVoltage ()
 Process voltage for RMS calculation (old method)
 
void resetCycle ()
 Reset accumulators for new cycle.
 

Public Attributes

int32_t l_cumVdeltasThisCycle { 0 }
 
int32_t l_DCoffset_V { 512L * 256L }
 
int32_t l_sampleVminusDC { 0 }
 
uint32_t l_sum_Vsquared { 0 }
 
int32_t l_sumP { 0 }
 
int32_t l_sumP_atSupplyPoint { 0 }
 
uint16_t n_samples { 0 }
 

Detailed Description

Definition at line 39 of file test_main.cpp.

Member Function Documentation

◆ getAveragePower()

float OldImplementation::getAveragePower ( ) const
inline

Get average power per sample.

Definition at line 131 of file test_main.cpp.

◆ getOffsetAsADC()

int16_t OldImplementation::getOffsetAsADC ( ) const
inline

Get DC offset as ADC value.

Definition at line 123 of file test_main.cpp.

◆ getRmsVoltage()

float OldImplementation::getRmsVoltage ( ) const
inline

Get RMS voltage (relative, not calibrated)

Definition at line 139 of file test_main.cpp.

◆ processCurrentRawSample()

void OldImplementation::processCurrentRawSample ( int16_t rawSample)
inline

Process current sample and calculate power (old method)

Definition at line 67 of file test_main.cpp.

Here is the caller graph for this function:

◆ processMinusHalfCycle()

void OldImplementation::processMinusHalfCycle ( )
inline

Update DC filter at end of half cycle (old method)

Definition at line 99 of file test_main.cpp.

Here is the caller graph for this function:

◆ processPolarity()

void OldImplementation::processPolarity ( int16_t rawSample)
inline

Process voltage sample (old method)

Definition at line 59 of file test_main.cpp.

Here is the caller graph for this function:

◆ processVoltage()

void OldImplementation::processVoltage ( )
inline

Process voltage for RMS calculation (old method)

Definition at line 85 of file test_main.cpp.

Here is the caller graph for this function:

◆ resetCycle()

void OldImplementation::resetCycle ( )
inline

Reset accumulators for new cycle.

Definition at line 114 of file test_main.cpp.

Member Data Documentation

◆ l_cumVdeltasThisCycle

int32_t OldImplementation::l_cumVdeltasThisCycle { 0 }

Definition at line 44 of file test_main.cpp.

◆ l_DCoffset_V

int32_t OldImplementation::l_DCoffset_V { 512L * 256L }

Definition at line 42 of file test_main.cpp.

◆ l_sampleVminusDC

int32_t OldImplementation::l_sampleVminusDC { 0 }

Definition at line 43 of file test_main.cpp.

◆ l_sum_Vsquared

uint32_t OldImplementation::l_sum_Vsquared { 0 }

Definition at line 51 of file test_main.cpp.

◆ l_sumP

int32_t OldImplementation::l_sumP { 0 }

Definition at line 47 of file test_main.cpp.

◆ l_sumP_atSupplyPoint

int32_t OldImplementation::l_sumP_atSupplyPoint { 0 }

Definition at line 48 of file test_main.cpp.

◆ n_samples

uint16_t OldImplementation::n_samples { 0 }

Definition at line 54 of file test_main.cpp.


The documentation for this struct was generated from the following file: