Skip to content

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Oct 9, 2025

Fixes #1068

@mgovers mgovers self-assigned this Oct 9, 2025
@mgovers mgovers added the improvement Improvement on internal implementation label Oct 9, 2025
Comment on lines +455 to +459
// the following terms break the symmetry between
// - polar -> decomposed -> uniform
// - polar -> independent -> uniform
// note that that is OK because decomposed is a 2D transformation of polar, while
// independent is a radial-only transformation of polar, so it is more stable.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also means that because we use DecomposedComplexRandomVariable in our CurrentSensorCalcParams, our IterativeLinear solver actually uses a slightly larger variance than strictly necessary (because it uses UniformComplexRandomVariable, not DecomposedComplexRandomVariable).

This can be resolved by using PolarComplexRandomVariable in our CurrentSensorCalcParams and deferring the conversion either to DecomposedComplexRandomVariable (NRSE) or directly to UniformComplexRandomVariable (ILSE) where needed. MeasuredValues may then require some updates as well, as it would require different accumulations for the ILSE and the NRSE.

Out of scope of this PR, though.

Copy link

Comment on lines +136 to +138
// // first order approximation
// return std::make_pair(magnitude_variance * cos2_angle + magnitude2 * angle_variance * sin2_angle,
// magnitude_variance * sin2_angle + magnitude2 * angle_variance * cos2_angle);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to remove this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement on internal implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Handle current sensor for i_measured=0 and i_angle_measured=npi/2

1 participant