Smart Camera ESP32
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
MoveX Class Reference

Encapsulates horizontal movement states and utility methods. More...

#include <move_types.h>

Inheritance diagram for MoveX:
MoveDirection< MoveXValue >

Public Member Functions

constexpr MoveX ()
 Default constructor initializing to None.
 
const char * to_string () const
 Converts the state to a human-readable string.
 
- Public Member Functions inherited from MoveDirection< MoveXValue >
constexpr MoveDirection (MoveXValue v)
 Construct a new Move Direction object.
 
bool is_none () const
 Checks if the movement state is None (0).
 
MoveXValue get_value () const
 Gets the underlying enum value.
 
bool operator! () const
 Logical NOT operator.
 
 operator uint8_t () const
 Implicit conversion to uint8_t for hardware drivers.
 
bool operator== (MoveXValue v) const
 Equality comparison with underlying enum.
 
bool operator!= (MoveXValue v) const
 Inequality comparison with underlying enum.
 

Static Public Attributes

static constexpr MoveXValue None = MoveXValue::None
 Local alias for None state.
 
static constexpr MoveXValue Right = MoveXValue::Right
 Local alias for Right state.
 
static constexpr MoveXValue Left = MoveXValue::Left
 Local alias for Left state.
 

Additional Inherited Members

- Protected Attributes inherited from MoveDirection< MoveXValue >
MoveXValue _value
 

Detailed Description

Encapsulates horizontal movement states and utility methods.

Member Function Documentation

◆ to_string()

const char * MoveX::to_string ( ) const
inline

Converts the state to a human-readable string.

Returns
const char* "Right", "Left", or "None".

The documentation for this class was generated from the following file: