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