From 33e3949af659a7fed018daf39d2cb6df1ff9e7a3 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 3 Jun 2025 17:37:45 +0200 Subject: [PATCH] Fixed issues from latest commits --- LinearAlgebra/src/Direction.cs | 7 ++++--- src/Things/TouchSensor.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LinearAlgebra/src/Direction.cs b/LinearAlgebra/src/Direction.cs index d544d90..863de2b 100644 --- a/LinearAlgebra/src/Direction.cs +++ b/LinearAlgebra/src/Direction.cs @@ -24,10 +24,11 @@ namespace LinearAlgebra { horizontal = 0; vertical = 0; } - // public Direction(Angle horizontal, Angle vertical) { - // this.horizontal = horizontal.inDegrees; + public Direction(Angle horizontal, Angle vertical) { + this.horizontal = horizontal.inDegrees; + this.vertical = vertical.inDegrees; + } - // } // public Direction(float horizontal, float vertical) { // this.horizontal = horizontal; // this.vertical = vertical; diff --git a/src/Things/TouchSensor.cs b/src/Things/TouchSensor.cs index 4235c30..cdeb0dc 100644 --- a/src/Things/TouchSensor.cs +++ b/src/Things/TouchSensor.cs @@ -70,7 +70,7 @@ namespace RoboidControl { touchUpdated = false; return bytes; #else - return 0; + return Array.Empty(); #endif }