Add variables for setting the target fps and rpm
This commit is contained in:
parent
5134038ac5
commit
e1f6085b87
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue