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

20 lines
433 B
C
Raw Normal View History

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