2024-12-27 09:47:56 +08:00
|
|
|
#ifndef STORAGE_H
|
|
|
|
#define STORAGE_H
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include <SPIFFS.h>
|
2024-12-27 10:16:08 +08:00
|
|
|
#include "consts.h"
|
2024-12-27 09:47:56 +08:00
|
|
|
|
|
|
|
class Storage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static bool isMounted;
|
|
|
|
static void init();
|
|
|
|
static void setPID(float kp, float ki, float kd);
|
|
|
|
static void getPID(float &kp, float &ki, float &kd);
|
|
|
|
static void setSensitivity(unsigned int sensitivity);
|
|
|
|
static unsigned int getSensitivity();
|
|
|
|
static void setName(String name);
|
|
|
|
static String getName();
|
2025-01-01 17:53:59 +08:00
|
|
|
static void setTrackingParams(uint8_t baseSpeed, uint8_t turnSpeed, uint8_t rotateSensitive);
|
|
|
|
static void getTrackingParams(uint8_t &baseSpeed, uint8_t &turnSpeed, uint8_t &rotateSensitive);
|
2024-12-27 09:47:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|