-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ObjectAcConnection to fetch /Ac/PvOn* phase totals #1909
base: main
Are you sure you want to change the base?
Use ObjectAcConnection to fetch /Ac/PvOn* phase totals #1909
Conversation
8805693
to
d32b575
Compare
} | ||
} | ||
onPhaseCountChanged: Qt.callLater(root._updateMaximumPhaseCount) | ||
onPowerChanged: Qt.callLater(root._updateAcTotals) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an assumption that if the current changes, the power will also change, which is why you don't also call _updateAcTotals upon onCurrentChanged? (I can imagine a hypothetical example where the power stays the same if the voltage drops very low and current goes very high, which might need to be visualized or whatever)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes this was meant to hook into onCurrentChanged as well. Fixed.
The /Ac/PvOnGrid, /Ac/PvOnGenset and /Ac/PvOnOutput values may change frequently, so the PvMonitor implementation was sub-optimal as it re-calculated the phase totals for these values whenever a single phase value was changed. Use ObjectAcConnection to monitor these values instead, as that only calculates the totals once per second. Fixes #1908
d32b575
to
4721818
Compare
The /Ac/PvOnGrid, /Ac/PvOnGenset and /Ac/PvOnOutput values may change frequently, so the PvMonitor implementation was sub-optimal as it re-calculated the phase totals for these values whenever a single phase value was changed.
Use ObjectAcConnection to monitor these values instead, as that only calculates the totals once per second.
Fixes #1908