mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-21 20:11:46 +02:00
changed int to 32 bits and method names
This commit is contained in:
parent
0d1854c8d7
commit
32f82557b3
@ -11,6 +11,8 @@
|
||||
|
||||
#ifndef Motion_h
|
||||
#define Motion_h
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
class Motion{
|
||||
protected:
|
||||
@ -28,19 +30,19 @@ public:
|
||||
* @brief Move forward for a certain amount of time.
|
||||
* @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.
|
||||
* @param rotateForMs Representing the duration of rotating left in milliseconds.
|
||||
* @brief Rotate clockwise for a certain amount of time.
|
||||
* @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.
|
||||
* @param rotateForMs Representing the duration of rotating right in milliseconds.
|
||||
* @brief Rotate anticlockwise for a certain amount of time.
|
||||
* @param rotateForMs Representing the duration of rotating anticlockwise in milliseconds.
|
||||
*/
|
||||
void rotateRight(uint8_t rotateForMs);
|
||||
void rotateAnticlockwise(uint32_t rotateForMs);
|
||||
|
||||
};
|
||||
#endif //Motion_h
|
Loading…
x
Reference in New Issue
Block a user