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 }