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.

22 lines
630 B

  1. #ifndef __JOYSTICK__
  2. #define __JOYSTICK__
  3. #include "Motor.h"
  4. class Joystick {
  5. // Pin belegungen
  6. private:
  7. uint16_t x_pin; // Pin Nummer an dem der X-output des Joysticks angebunden ist.
  8. uint16_t y_pin; // Pin Nummer an dem der X-output des Joysticks angebunden ist.
  9. public:
  10. int16_t lowestValue;
  11. int16_t highestValue;
  12. uint16_t spaceing; // Abstand vom mittelpunkt um zappeln zu verhindern.
  13. int16_t xAxisReading;
  14. int16_t yAxisReading;
  15. public:
  16. Joystick(uint16_t x_pin, uint16_t y_pin, int16_t lowestValue, int16_t highestValue, uint16_t spaceing);
  17. void checkJoystickInput();
  18. };
  19. #endif