Skip to content

Commit

Permalink
Make ProtectionRelay compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Mar 4, 2024
1 parent 577c6c4 commit ca65dd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experiments/C/src/protection-relay/ProtectionRelay.lf
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ reactor AgCrete {
=}
}
@label("Average")
reactor AgMoy(num_values:int(3)) {
reactor AgMoy(num_values:int = 3) {
input currents:double[4]
output V_TRS_Cumu1Filtree:double[4]
reaction(currents) -> V_TRS_Cumu1Filtree {=
// Average num_values
=}
}
@label("Magnitude of fundamental and harmonics")
reactor AgTRS(num_values:int(12)) {
reactor AgTRS(num_values:int = 12) {
timer t(0, 13320us) // Computes an output every 24 periods of 555us.
input average:double[4]
input crest:double[4]
state avghistory:double[12]({= [0] =})
state avghistory:double[12] = {= {0} =}
output V_mod2Imax:double[4]
output VS_Mod2:double[4]
reaction(average) {=
Expand Down

0 comments on commit ca65dd0

Please sign in to comment.