Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
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.

25 lines
423 B

  1. #ifndef __STEUERUNG__
  2. #define __STEUERUNG__
  3. #include "Motor.h"
  4. #include "Joystick.h"
  5. class Steuerung {
  6. private:
  7. Joystick* joystick;
  8. Motor* left;
  9. Motor* right;
  10. int16_t xValue;
  11. int16_t yValue;
  12. public:
  13. Steuerung(Joystick* joystick, Motor* left, Motor* right);
  14. void updateValues();
  15. private:
  16. void mapReadingsToMatchPWMValues();
  17. void applyPWMValuesDependingOnReadings();
  18. };
  19. #endif