30 lines
450 B
C++
30 lines
450 B
C++
#ifndef INITIALIZATION_STATE_H
|
|
#define INITIALIZATION_STATE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "state.h"
|
|
|
|
class InitializationState : public State
|
|
{
|
|
private:
|
|
|
|
|
|
static constexpr int64_t WAIT_MS = 2000;
|
|
int64_t enter_time_ms = 0;
|
|
|
|
|
|
public:
|
|
void enter() override;
|
|
|
|
void update() override;
|
|
|
|
// void command(char c) override;
|
|
|
|
void exit() override;
|
|
|
|
NodeState id() const override { return NodeState::INITIALIZATION; }
|
|
};
|
|
|
|
#endif
|