2023-01-07 05:17:05 +00:00
|
|
|
#ifndef __EMOVEMENTPLATFORMSTATE__H__
|
|
|
|
#define __EMOVEMENTPLATFORMSTATE__H__
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
/**
|
2023-07-31 09:13:19 +00:00
|
|
|
* The different types of platform movement state
|
2023-01-07 05:17:05 +00:00
|
|
|
*/
|
|
|
|
enum class eMovementPlatformState : uint32_t
|
|
|
|
{
|
2023-07-31 09:13:19 +00:00
|
|
|
Waiting = 1 << 0U,
|
|
|
|
Travelling = 1 << 1U,
|
|
|
|
Stopped = 1 << 2U,
|
|
|
|
ReachedDesiredWaypoint = 1 << 3U,
|
|
|
|
ReachedFinalWaypoint = 1 << 4U,
|
|
|
|
};
|
|
|
|
|
|
|
|
inline constexpr eMovementPlatformState operator|(eMovementPlatformState a, eMovementPlatformState b) {
|
|
|
|
return static_cast<eMovementPlatformState>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b));
|
2023-01-07 05:17:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__EMOVEMENTPLATFORMSTATE__H__
|