From 87241a0279b6b6d72c06aceccc7c8cf4890f92b4 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 6 Jun 2025 09:12:54 +0200 Subject: [PATCH] Correct turning direction for binary --- src/Things/Motor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Things/Motor.cs b/src/Things/Motor.cs index a41cc9a..23dbbd3 100644 --- a/src/Things/Motor.cs +++ b/src/Things/Motor.cs @@ -40,7 +40,7 @@ namespace RoboidControl { return data; } public override void ProcessBinary(byte[] data) { - this.targetSpeed = (float)data[0] / 127; + this.targetSpeed = (float)(sbyte)data[0] / 127; } }