Uppfærður kóði sem tekur á móti input fyrir Kp og Ti, ásamt því að uppfæra UML diagram
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define PRE_OPERATIONAL_STATE_H
|
||||
|
||||
#include "state.h"
|
||||
#include "stdint.h"
|
||||
|
||||
class PreOperationalState : public State
|
||||
{
|
||||
@@ -9,6 +10,21 @@ private:
|
||||
unsigned long previous_time;
|
||||
bool led_state;
|
||||
|
||||
//bool waiting_for_kp;
|
||||
//bool waiting_for_ti;
|
||||
|
||||
enum InputMode
|
||||
{
|
||||
NONE,
|
||||
ENTER_KP,
|
||||
ENTER_TI
|
||||
};
|
||||
|
||||
InputMode input_mode;
|
||||
|
||||
char input_buffer[16];
|
||||
uint8_t input_index;
|
||||
|
||||
public:
|
||||
PreOperationalState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user