Skip to content

Commit

Permalink
fix overcompensating angle offset
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <[email protected]>
  • Loading branch information
mgovers committed Jan 22, 2024
1 parent 743e852 commit 8b3e97a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ template <bool sym> class NewtonRaphsonSESolver {
// if no angle measurement is present
double const angle_offset = [&]() -> double {
if (has_angle) {
return 1.0;
return 0.0;
}
if constexpr (sym) {
return x_[math_topo_->slack_bus].theta() + del_x_rhs_[math_topo_->slack_bus].theta();
Expand Down

0 comments on commit 8b3e97a

Please sign in to comment.