20 lines
607 B
C
Raw Normal View History

2022-11-10 17:07:39 +01:00
#pragma once
2022-11-03 08:54:35 +01:00
class ControlModule
{
private:
2022-12-14 12:30:54 +01:00
float motors[4]; //LeftFront; RightFront; LeftBack; RightBack
float forwardSpeed;
float rotateSpeed;
float moveSideSpeed;
2022-11-03 08:54:35 +01:00
public:
ControlModule(/* args */);
2022-12-14 12:30:54 +01:00
ControlModule(float forwardSpeed, float rotateSpeed, float moveSideSpeed);
2022-11-03 08:54:35 +01:00
~ControlModule();
2022-12-14 12:30:54 +01:00
void moveForward();
2022-12-14 16:14:00 +01:00
void moveSide(int imageColumsMiddle, int contourColumsMiddle);
void rotate(int angle);
void unit(); //Brings the max Value to 1.0
void calcSpeeds(int imageColumsMiddle, int contourColumsMiddle, int angle); //Funktion to be called
2022-11-03 08:54:35 +01:00
};