Add variables for setting the target fps and rpm

This commit is contained in:
Matt McWilliams 2024-02-17 14:18:06 +00:00
parent 5134038ac5
commit e1f6085b87
1 changed files with 3 additions and 1 deletions

View File

@ -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();