-
Notifications
You must be signed in to change notification settings - Fork 0
/
driveshaft.h
32 lines (27 loc) · 1.38 KB
/
driveshaft.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/******************************************************************************
* *
* Program : FileLogger *
* *
* FILE : driveshaf.h *
* *
* Date : 28 / 05 / 2021 *
* *
* Programmers : Team Software "TORQ" *
* *
******************************************************************************/
#pragma once
#include "mainMotor.h"
#include "servoMotor.h"
#include <Arduino.h>
class DriveShaft
{
public:
DriveShaft(byte m_epin, byte m_inapin, byte m_inbpin, byte m_s_pin);
MainMotor p_mainMotor; // (byte m_enable_pin, byte m_input_a, byte m_input_b)
ServoMotor p_servoMotor; // (byte pin)
void moveForward(int m_speed);
void turnLeft(int m_speed, int m_angle);
void turnRight(int m_speed, int m_angle);
void powerStart();
void stopMovement();
};