Skip to content
Snippets Groups Projects
Commit ffdd2421 authored by Daniel Lorych's avatar Daniel Lorych :cookie:
Browse files

Fix calculations for PowerOutputs

parent ed7bc9e0
Branches
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ namespace Helios.Source ...@@ -19,7 +19,7 @@ namespace Helios.Source
{ {
double totalOutput; double totalOutput;
totalOutput = solarPanelEfficiency * solarEnergy * roofArea * this.Efficiency * Math.Sin(sunAngle); totalOutput = solarPanelEfficiency * solarEnergy * roofArea * this.Efficiency * Math.Sin(Math.PI * sunAngle / 180.0);
this.TotalOutput = totalOutput; this.TotalOutput = totalOutput;
......
...@@ -36,7 +36,7 @@ namespace Helios.Source ...@@ -36,7 +36,7 @@ namespace Helios.Source
{ {
double powerOutput; double powerOutput;
powerOutput = Efficiency * solarEnergy * roofArea * Math.Sin(roofElevation); powerOutput = Efficiency * solarEnergy * roofArea * Math.Sin(Math.PI * roofElevation / 180.0);
this.PowerOutput = powerOutput; this.PowerOutput = powerOutput;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment