Files
ESP_Project3_H26/include/operational_state.h

27 lines
451 B
C++

#ifndef OPERATIONAL_STATE_H
#define OPERATIONAL_STATE_H
#include "state.h"
#include <stdint.h>
class OperationalState : public State
{
private:
static constexpr double SAMPLE_PERIOD_MS = 4.0;
// uint32_t svo teljarinn flæði ekki yfir eftir ~4 mín (eins og uint16_t)
uint32_t sample_count = 0;
public:
void enter() override;
void update() override;
void command(char c) override;
void exit() override;
};
#endif