Skip to content

Commit 66eae43

Browse files
committed
Release 0.981
Signed-off-by: matt <github@quantasylum.com>
1 parent 22d04a9 commit 66eae43

File tree

8 files changed

+36
-24
lines changed

8 files changed

+36
-24
lines changed

Tractor/Com.QuantAsylum.Tractor.Dialogs/DlgPrompt.Designer.cs

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tractor/Com.QuantAsylum.Tractor.Dialogs/DlgPrompt.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ public DlgPrompt(string instruction, bool showFailButton, Bitmap image)
2222

2323
if (image != null)
2424
{
25-
this.Height = 650;
2625
pictureBox1.Image = image;
2726
}
28-
else
29-
this.Height = 300;
3027
}
3128
}
3229
}

Tractor/Com.QuantAsylum.Tractor.TestManagers/QA401.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ private PointD[] MarshallToPointD(QuantAsylum.QA401.PointD[] dataIn)
278278

279279

280280

281+
/// <summary>
282+
/// Returns true if the QA401 application is running.
283+
/// </summary>
284+
/// <returns></returns>
281285
bool IsAppAlreadyRunning()
282286
{
283287
System.Threading.Mutex mutex;
@@ -290,7 +294,6 @@ bool IsAppAlreadyRunning()
290294
mutex.ReleaseMutex();
291295
mutex.Dispose();
292296
return false;
293-
294297
}
295298

296299
return true;
@@ -330,16 +333,22 @@ bool LaunchApp(string name)
330333
// Wait up to 20 seconds for the app to get running
331334
for (int i=0; i<20; i++)
332335
{
333-
if (IsAppAlreadyRunning())
336+
if (IsAppAlreadyRunning() == true)
334337
{
335-
Thread.Sleep(1000);
338+
// At this point we've launched the app and we've determiend
339+
// it's running. Now we must wait to ensure it has been configured
340+
// which could take up to 20 seconds. BUGBUG: Should add a another
341+
// global mutex to QA401 app to determine that FPGA is configured
342+
Thread.Sleep(20000);
336343
return true;
337344
}
338345

346+
// Wait 1 second and try again
339347
Thread.Sleep(1000);
340348
}
341349

342-
return true;
350+
// Here we couldn't confirm the app had launched
351+
return false;
343352
}
344353
catch (Exception ex)
345354
{

Tractor/Com.QuantAsylum.Tractor.Tests/Operator/AuditionA01.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Com.QuantAsylum.Tractor.Tests.Other
77
{
88
public class AuditionA01 : UiTestBase
99
{
10-
[ObjectEditorAttribute(Index = 200, DisplayText = "WAV File Name:", MaxLength = 128)]
10+
[ObjectEditorAttribute(Index = 200, DisplayText = "WAV File Name:", MaxLength = 512, IsFileName = true)]
1111
public string AuditionFileName = "";
1212

1313
[ObjectEditorAttribute(Index = 210, DisplayText = "Output Level (0..1)", MinValue = 0, MaxValue = 1)]

Tractor/Com.QuantAsylum.Tractor.Tests/Operator/PromptA00.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class PromptA00 : UiTestBase
1515
[ObjectEditorAttribute(Index = 200, DisplayText = "Prompt Message:", MaxLength = 128)]
1616
public string PromptMessage = "";
1717

18-
[ObjectEditorAttribute(Index = 210, DisplayText = "Bitmap File Name:", MaxLength = 128)]
18+
[ObjectEditorAttribute(Index = 210, DisplayText = "Bitmap File Name:", MaxLength = 512, IsFileName = true)]
1919
public string BitmapFile = "";
2020

2121
[ObjectEditorAttribute(Index = 220, DisplayText = "Display Fail Button")]
@@ -37,9 +37,9 @@ public override void DoTest(string title, out TestResult tr)
3737
{
3838
bmp = new Bitmap(BitmapFile);
3939
}
40-
catch
40+
catch (Exception ex)
4141
{
42-
42+
MessageBox.Show($"Failed to load specified bitmap file {BitmapFile}. Exception: " + ex.Message);
4343
}
4444

4545
DlgPrompt dlg = new DlgPrompt(PromptMessage, ShowFailButton, bmp);
@@ -54,8 +54,9 @@ public override void DoTest(string title, out TestResult tr)
5454

5555
public override string GetTestDescription()
5656
{
57-
return "Instructs the user to complete an action. A PNG image may be specified as an instruction aid, and the operator" +
58-
"may optionally decide if the action succeeded or failed.";
57+
return "Instructs the user to complete an action. A PNG image (512x384) may be specified as an instruction aid, and the operator" +
58+
"may optionally decide if the action succeeded or failed. If an image is specified, it will be stretched to fit, maintaining" +
59+
"its current aspect ratio.";
5960
}
6061
}
6162
}

Tractor/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Tractor
99
static class Constants
1010
{
1111
public static string TitleBarText = "QuantAsylum TRACTOR";
12-
public static readonly double Version = 0.98;
12+
public static readonly double Version = 0.981;
1313
public static string VersionSuffix = "";
1414

1515
public static double RequiredWebserviceVersion = 0.5;

Tractor/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.9.3.0")]
36-
[assembly: AssemblyFileVersion("0.9.3.0")]
35+
[assembly: AssemblyVersion("0.9.8.1")]
36+
[assembly: AssemblyFileVersion("0.9.8.1")]

Tractor/Releases.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
0.98
1+
0.981
2+
- Add new file picker button to PromptA00 and AuditionA01 tests.
3+
- Minor cleanup to QA401 app launch code
4+
5+
0.98
26
- UI made more finger friendly with fatter buttons for touch screens
37
- Added ThdNA01 for measuring THD+N
48
- Activated lock code so that run screen can be locked down. The intent here is to ensure that accidental button presses won't close the test screen

0 commit comments

Comments
 (0)