2021-05-07 21:39:03 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ESC.h"
|
|
|
|
|
2021-05-12 16:44:17 +02:00
|
|
|
#define ROLLER_DEFAULT_SPEED 1200
|
2021-05-07 21:39:03 +02:00
|
|
|
|
|
|
|
class Roller{
|
|
|
|
public:
|
|
|
|
Roller(int pinPwm_, int pinSense, int MIN_, int MAX_, int ARM_);
|
|
|
|
void setup();
|
|
|
|
void speed(int);
|
|
|
|
void update();
|
|
|
|
|
|
|
|
public:
|
|
|
|
ESC* roller;
|
|
|
|
int pinPwm, pinSense, MIN, MAX, ARM;
|
|
|
|
bool roller_arm_setup, roller_armed;
|
|
|
|
|
2021-05-10 20:34:20 +02:00
|
|
|
int roller_setup_phase, roller_counter, roller_speed;
|
2021-05-07 21:39:03 +02:00
|
|
|
};
|