forked from amkovkov/GranuSightSoftware2
feat: GSS2.Test - UI+DI, Vulkan render test
This commit is contained in:
+12
-11
@@ -1,4 +1,5 @@
|
||||
using System.Drawing;
|
||||
|
||||
using GSS2.Core.Analysis.AmineContent.Database;
|
||||
using GSS2.Core.Hardware;
|
||||
|
||||
@@ -24,24 +25,24 @@ public class Worker(
|
||||
|
||||
protected override async Task ExecuteAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
await _cameraService.InitializeAsync(cancellationToken);
|
||||
_cameraService.Test();
|
||||
|
||||
_ = _lightsService.Run(cancellationToken);
|
||||
_ = _lightsService.SnowfallAsync(0.3, 1, Color.Aqua, cancellationToken);
|
||||
// _ = _lightsService.Run(cancellationToken);
|
||||
// _ = _lightsService.SnowfallAsync(0.3, 1, Color.Aqua, cancellationToken);
|
||||
|
||||
_illuminatorService.SetIntensity(0.01, 0, 0);
|
||||
_illuminatorService.TurnOn();
|
||||
// _illuminatorService.SetIntensity(0.01, 0, 0);
|
||||
// _illuminatorService.TurnOn();
|
||||
|
||||
await Task.Delay(1000);
|
||||
// await Task.Delay(1000);
|
||||
|
||||
var img = await _cameraService.CaptureImage(cancellationToken, 50);
|
||||
img?.SaveImage("IMAGE.png");
|
||||
// var img = await _cameraService.CaptureImage(cancellationToken, 50);
|
||||
// // img?.SaveImage("IMAGE.png");
|
||||
|
||||
await Task.Delay(1000);
|
||||
// await Task.Delay(1000);
|
||||
|
||||
_illuminatorService.TurnOff();
|
||||
// _illuminatorService.TurnOff();
|
||||
|
||||
await _lightsService.DisconnectAsync(cancellationToken);
|
||||
// await _lightsService.DisconnectAsync(cancellationToken);
|
||||
|
||||
applicationLifetime.StopApplication();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user