SPQR-Team1-2020/include/motors_movement/roller.h

20 lines
419 B
C++

#pragma once
#include "ESC.h"
#define ROLLER_DEFAULT_SPEED 1100
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;
int roller_setup_phase, roller_counter;
};