changed int to 32 bits and method names

This commit is contained in:
n1i9c9k9 2024-01-03 11:37:58 +01:00
parent 0d1854c8d7
commit 32f82557b3

View File

@ -11,6 +11,8 @@
#ifndef Motion_h #ifndef Motion_h
#define Motion_h #define Motion_h
#include <stdint.h>
class Motion{ class Motion{
protected: protected:
@ -28,19 +30,19 @@ public:
* @brief Move forward for a certain amount of time. * @brief Move forward for a certain amount of time.
* @param moveForMs Representing the duration of forward moving in milliseconds. * @param moveForMs Representing the duration of forward moving in milliseconds.
*/ */
void move(uint8_t moveForMs); void move(uint32_t moveForMs);
/** /**
* @brief Rotate left for a certain amount of time. * @brief Rotate clockwise for a certain amount of time.
* @param rotateForMs Representing the duration of rotating left in milliseconds. * @param rotateForMs Representing the duration of rotating clockwise in milliseconds.
*/ */
void rotateLeft(uint8_t rotateForMs); void rotateClockwise(uint32_t rotateForMs);
/** /**
* @brief Rotate right for a certain amount of time. * @brief Rotate anticlockwise for a certain amount of time.
* @param rotateForMs Representing the duration of rotating right in milliseconds. * @param rotateForMs Representing the duration of rotating anticlockwise in milliseconds.
*/ */
void rotateRight(uint8_t rotateForMs); void rotateAnticlockwise(uint32_t rotateForMs);
}; };
#endif //Motion_h #endif //Motion_h