diff --git a/src/main.cpp b/src/main.cpp index 5580a38..20aad4c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ MotorDriver motor; P_controller controller(12.5); -MotorController system( +MotorController motor_controller( encoder, motor, controller @@ -51,13 +51,13 @@ int main() sei(); - system.set_states( + motor_controller.set_states( &initialization_state, &operational_state ); - system.begin(); + motor_controller.begin(); while (true) @@ -68,12 +68,12 @@ int main() if (c != '\n' && c != '\r') { - system.command(c); + motor_controller.command(c); } } - system.update(); + motor_controller.update(); }