27 lines
451 B
C++
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 |