17 lines
389 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();
void rotate();
void moveSide();
2022-11-03 08:54:35 +01:00
};