Skip to content

Commit

Permalink
Added Logic to save last value
Browse files Browse the repository at this point in the history
  • Loading branch information
clackner-gpa authored Jan 23, 2025
1 parent c5da76e commit c2e5213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Libraries/Adapters/PowerCalculations/PhasorAddition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ protected override void PublishFrame(IFrame frame, int index)
{
IMeasurement[] outputMeasurements = OutputMeasurements;

m_lastAngleResult = result.Angle.ToDegrees();
m_lastMagnitudeResult = result.Magnitude;
// Provide calculated measurements for external consumption
OnNewMeasurements(new IMeasurement[]
{
Expand Down

0 comments on commit c2e5213

Please sign in to comment.