SPQR-Team-2019-REVAMPED/include/motors_movement/roller.h

20 lines
419 B
C
Raw Normal View History

2021-05-07 21:39:03 +02:00
#pragma once
#include "ESC.h"
#define ROLLER_DEFAULT_SPEED 1100
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;
int roller_setup_phase, roller_counter;
};