mirror of
				https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
				synced 2025-11-04 09:25:13 +01:00 
			
		
		
		
	changed int to 32 bits and method names
This commit is contained in:
		@@ -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
 | 
				
			||||||
		Reference in New Issue
	
	Block a user