ESP-IDF Robot Controls

This commit is contained in:
2024-12-28 21:37:30 -05:00
parent 80ab2e9199
commit 70e097effc

View File

@@ -1,8 +1,12 @@
#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.
/*
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;