Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
Fixed incorrect salle-key topology calculation if compiled with MinGW
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed May 8, 2014
1 parent a9c4790 commit dd6b14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sallenkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void SallenKey::calcLowPass()

C2 = 10 / Fc;
C1 = (B*B+4*C*(Kv1-1))*C2/(4*C);
R1 = 2/(Wc*(B*C2+sqrt((B*B + 4*C*(Kv1-1))*(C2*C2)-4*C*C1*C2)));
R1 = 2/(Wc*(B*C2+sqrt((B*B + 4*C*(Kv1-1))*C2*C2-4*C*C1*C2)));
R2 = 1/(C*C1*C2*R1*Wc*Wc);

if (Kv != 1.0) {
Expand Down

0 comments on commit dd6b14b

Please sign in to comment.