Fixed problem where the telescope area was in mm when it should be mm squared. And the driver was incorrect by a factor of 1000.
This commit is contained in:
@@ -845,9 +845,11 @@ namespace Meade.net.Telescope.UnitTests
|
||||
[Test]
|
||||
public void ApertureArea_Get_ReturnsExpectedResult()
|
||||
{
|
||||
_profileProperties.ApertureArea = 130674;
|
||||
|
||||
var result = _telescope.ApertureArea;
|
||||
|
||||
Assert.That(result, Is.EqualTo(_profileProperties.ApertureArea / 1000));
|
||||
Assert.That(result, Is.EqualTo(_profileProperties.ApertureArea / (1000*1000)));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -1355,7 +1355,7 @@ namespace ASCOM.Meade.net
|
||||
{
|
||||
get
|
||||
{
|
||||
var apertureArea = _profileProperties.ApertureArea / 1000;
|
||||
var apertureArea = _profileProperties.ApertureArea / (1000*1000);
|
||||
LogMessage("ApertureArea Get", $"{apertureArea}");
|
||||
return apertureArea;
|
||||
}
|
||||
|
||||
@@ -388,6 +388,11 @@ namespace ASCOM.Meade.net
|
||||
Verb = "open"
|
||||
});
|
||||
}
|
||||
|
||||
private void label29_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+1
@@ -434,6 +434,7 @@ namespace ASCOM.Meade.net
|
||||
//
|
||||
resources.ApplyResources(this.label29, "label29");
|
||||
this.label29.Name = "label29";
|
||||
this.label29.Click += new System.EventHandler(this.label29_Click);
|
||||
//
|
||||
// txtApertureArea
|
||||
//
|
||||
|
||||
@@ -1579,13 +1579,13 @@
|
||||
<value>494, 139</value>
|
||||
</data>
|
||||
<data name="label29.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>23, 13</value>
|
||||
<value>26, 13</value>
|
||||
</data>
|
||||
<data name="label29.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>56</value>
|
||||
</data>
|
||||
<data name="label29.Text" xml:space="preserve">
|
||||
<value>mm</value>
|
||||
<value>mm²</value>
|
||||
</data>
|
||||
<data name=">>label29.Name" xml:space="preserve">
|
||||
<value>label29</value>
|
||||
@@ -1678,7 +1678,7 @@
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>25</value>
|
||||
<value>232</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
|
||||
Reference in New Issue
Block a user