mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
add some classes for movement set handling
This commit is contained in:
23
components/movements/include/MovementManager.h
Normal file
23
components/movements/include/MovementManager.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef MOVEMENTS
|
||||
#define MOVEMENTS
|
||||
|
||||
#include "nvs_flash.h"
|
||||
|
||||
#define MOVEMENTS_NVS_NAMESPACE "movements"
|
||||
#define MOVEMENTS_NVS_KEY "key"
|
||||
#define MOVEMENTS_NVS_TOPOLOGY_KEY "topology"
|
||||
#define MOVEMENTS_DEBUG_TAG "movements"
|
||||
|
||||
class MovementManager {
|
||||
public:
|
||||
MovementManager();
|
||||
~MovementManager();
|
||||
esp_err_t get_movement_status();
|
||||
|
||||
private:
|
||||
nvs_handle_t handle = 0;
|
||||
esp_err_t status = ESP_ERR_INVALID_STATE;
|
||||
|
||||
};
|
||||
|
||||
#endif //MOVEMENTS
|
||||
Reference in New Issue
Block a user