Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AHaumer committed Dec 18, 2021
1 parent c622185 commit 485efe8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions BLDC/UsersGuide/ReleaseNotes.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ class ReleaseNotes "Release Notes"
extends Modelica.Icons.ReleaseNotes;
annotation (Documentation(info="<html>
<h4>v1.9.0 2021-12-17</h4>
<p>adapted HallTimeSpan to translate with OM</p>
<h4>v1.8.0 2021-12-17</h4>
<ul>
<li>implemented an encode evaluation based on a combination of time measurement and pulse count</li>
Expand Down
4 changes: 2 additions & 2 deletions BLDC/Utilities/HallTimeSpan.mo
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ initial equation
phi=phi0;
equation
der(phi)= w;
when edge(uC) then
when {edge(uC[k]) for k in 1:m} then
w= (if not uC[addIndex(firstTrueIndex(uC and not pre(uC)), 1, m)] then +1 else -1)*
(if noEvent(time - pre(t0) < eps) or pre(firstEdge) then 0 else 2*pi/(2*m)/(time - pre(t0)));
firstEdge= false;
t0= time;
elsewhen edge(notC) then
elsewhen {edge(notC[k]) for k in 1:m} then
w= (if not uC[addIndex(firstTrueIndex(notC and not pre(notC)), 1, m)] then -1 else +1)*
(if noEvent(time - pre(t0) < eps) or pre(firstEdge) then 0 else 2*pi/(2*m)/(time - pre(t0)));
firstEdge= false;
Expand Down
2 changes: 1 addition & 1 deletion BLDC/package.mo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
within ;
package BLDC "Brushless DC drives"

annotation (version="1.8.0", versionDate="2021-12-17",
annotation (version="1.9.0", versionDate="2021-12-18",
uses(Modelica(version="4.0.0"), ModelicaServices(version="4.0.0"),
Complex(version="4.0.0")),
Documentation(info="<html>
Expand Down

0 comments on commit 485efe8

Please sign in to comment.