From 5c5bf39bd373db6839d675ad35e5dfdb5e1030b8 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Thu, 12 Sep 2024 15:31:01 +0200 Subject: [PATCH] Made limited target angle public (tmp for testing..) --- LinearAlgebra | 2 +- ServoMotor.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LinearAlgebra b/LinearAlgebra index a646e93..09e25a8 160000 --- a/LinearAlgebra +++ b/LinearAlgebra @@ -1 +1 @@ -Subproject commit a646e936ee878af6954e43a66a7b66b0b208fcf9 +Subproject commit 09e25a8a218690157ba46ca5f7ccd5f33eab1c07 diff --git a/ServoMotor.h b/ServoMotor.h index 8325503..5c7c8c9 100644 --- a/ServoMotor.h +++ b/ServoMotor.h @@ -29,6 +29,8 @@ class ServoMotor : public Thing { virtual void Update(unsigned long currentTimeMs) override; + Angle16 limitedTargetAngle = 0.0F; + protected: bool hasTargetAngle = false; Angle16 targetAngle = 0.0F; @@ -37,7 +39,6 @@ class ServoMotor : public Thing { float maxVelocity = 0.0F; float targetVelocity = 0.0F; - Angle16 limitedTargetAngle = 0.0F; float lastUpdateTimeMs = 0.0F;