-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce the effect of noise on power flow direction visualisation
We visualise the direction of power flow with an icon and a colour e.g. feed-in icon with green colour gauge, versus grid-draw icon with blue colour gauge. This commit ensures that we don't flicker between feed-in and grid-draw visualisation if the value is actually zero and the readings are just noise, by requiring that the feed-in value exceeds a certain threshold before we recognise it. (Note that this will not prevent flickering if feed-in amount happens to hover around -0.5, but this is much less likely.) Also, this aligns the expectation of the user with the value shown e.g. -0.4 Watts will be shown as 0 W due to zero-digit-precision, and so the user does not expect to see any feed-in at this value. Contributes to #1328
- Loading branch information
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters