mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 11:01:46 +02:00
functions to implement
This commit is contained in:
parent
dbe97dc94c
commit
68883dadb8
@ -1,7 +1,48 @@
|
|||||||
|
/**
|
||||||
|
* @file Motion.h
|
||||||
|
* @author Jonathan Schulze, Nick Hübenthal
|
||||||
|
* @brief This component controls the ability to rotate and change position.
|
||||||
|
* @version 0.1
|
||||||
|
* @date 2023-12-13
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2023
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef Motion_h
|
#ifndef Motion_h
|
||||||
#define Motion_h
|
#define Motion_h
|
||||||
|
|
||||||
class Motion{
|
class Motion{
|
||||||
|
protected:
|
||||||
|
|
||||||
|
public:
|
||||||
|
Motion();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Initialize the movement component.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void begin(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Move forward for a certain amount of time.
|
||||||
|
* @param moveForMs Representing the duration of forward moving in milliseconds.
|
||||||
|
*/
|
||||||
|
void move(u8int moveForMs);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Rotate left for a certain amount of time.
|
||||||
|
* @param rotateForMs Representing the duration of rotating left in milliseconds.
|
||||||
|
*/
|
||||||
|
void rotateLeft(u8int rotateForMs);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Rotate right for a certain amount of time.
|
||||||
|
* @param rotateForMs Representing the duration of rotating right in milliseconds.
|
||||||
|
*/
|
||||||
|
void rotateRight(u8int rotateForMs);
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif //Motion_h
|
#endif //Motion_h
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user