From 80ab2e919905ba8fd6bdb6aaa0704997fac62ec1 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 28 Dec 2024 21:36:44 -0500 Subject: [PATCH] ESP-IDF Robot Controls --- ESP-IDF_Robot/main/controls.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ESP-IDF_Robot/main/controls.h b/ESP-IDF_Robot/main/controls.h index a817503b2..728df0529 100644 --- a/ESP-IDF_Robot/main/controls.h +++ b/ESP-IDF_Robot/main/controls.h @@ -1,6 +1,8 @@ #ifndef CONTROLS_H #define CONTROLSC_H +// To prevent assigning forbidden rpm values to the motor (i.e. to avoid short-citcuit) accidentially, +// we define one struct tha tholds RPMs for four motors, as opposed to defining array of structs for single motor. struct motors_rpm { int motor1_rpm; int motor2_rpm; @@ -8,10 +10,4 @@ struct motors_rpm { int motor4_rpm; }; -struct motor { - int pcm; - bool rotation; - -}; - #endif \ No newline at end of file