Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

control_module.h 607B

1234567891011121314151617181920
  1. #pragma once
  2. class ControlModule
  3. {
  4. private:
  5. float motors[4]; //LeftFront; RightFront; LeftBack; RightBack
  6. float forwardSpeed;
  7. float rotateSpeed;
  8. float moveSideSpeed;
  9. public:
  10. ControlModule(/* args */);
  11. ControlModule(float forwardSpeed, float rotateSpeed, float moveSideSpeed);
  12. ~ControlModule();
  13. void moveForward();
  14. void moveSide(int imageColumsMiddle, int contourColumsMiddle);
  15. void rotate(int angle);
  16. void unit(); //Brings the max Value to 1.0
  17. void calcSpeeds(int imageColumsMiddle, int contourColumsMiddle, int angle); //Funktion to be called
  18. };