From 7f3698ecaa97a7d8e0f5af233ad4a445513466d9 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 28 May 2025 12:18:22 +0200 Subject: [PATCH] Fix compatibility with lastest LinearAlgebra --- src/Things/DifferentialDrive.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Things/DifferentialDrive.cs b/src/Things/DifferentialDrive.cs index 271ea0d..039d26c 100644 --- a/src/Things/DifferentialDrive.cs +++ b/src/Things/DifferentialDrive.cs @@ -1,3 +1,4 @@ +using System; using LinearAlgebra; namespace RoboidControl { @@ -50,7 +51,7 @@ namespace RoboidControl { /// @sa SetLinearVelocity SetAngularVelocity public void SetDriveDimensions(float wheelDiameter, float wheelSeparation = 0) { this._wheelRadius = wheelDiameter > 0 ? wheelDiameter / 2 : -wheelDiameter / 2; - this.rpsToMs = wheelDiameter * Angle.pi; + this.rpsToMs = wheelDiameter * (float)Math.PI; if (wheelSeparation > 0) { wheelSeparation = wheelSeparation > 0 ? wheelSeparation : -wheelSeparation;