From e1f6085b877970372e623031e3d2678940915a51 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sat, 17 Feb 2024 14:18:06 +0000 Subject: [PATCH] Add variables for setting the target fps and rpm --- ino/contact_printer/DriveMotor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ino/contact_printer/DriveMotor.h b/ino/contact_printer/DriveMotor.h index 55dfe1b..31008ef 100644 --- a/ino/contact_printer/DriveMotor.h +++ b/ino/contact_printer/DriveMotor.h @@ -23,9 +23,11 @@ class DriveMotor { const uint8_t ppr = 11; const float ratio = 187.0 / 3.0; const uint32_t maxPulses = (int) round((float) ppr * ratio); - const uint8_t speed = 255; const uint8_t framesPerRotation = 18; + volatile float target_fps = 0.0; + volatile float target_rpm = 0.0; + public: DriveMotor();