Part 2 nýjir kóðar, fyrir STOP og Fault kerfi

This commit is contained in:
2026-09-30 11:52:06 +00:00
parent 7ca9c51268
commit d96da75bdf
8 changed files with 154 additions and 4 deletions
+7 -1
View File
@@ -15,6 +15,7 @@ private:
State* initialization_state;
State* operational_state;
State* stopped_state;
RotaryEncoderDriver& encoder;
MotorDriver& motor;
@@ -33,7 +34,8 @@ public:
void set_states(
State* initialization,
State* operational
State* operational,
State* stopped
);
@@ -50,6 +52,10 @@ public:
void to_operational();
void to_stopped();
bool fault_active();
void run_speed_controller();