ESP-IDF Robot Controls

This commit is contained in:
2024-12-28 22:30:00 -05:00
parent a594c7037b
commit 2e9e69e083

View File

@@ -14,7 +14,7 @@ Struct that holds PCM for RPMs for each of 4 motors.
Positive PCM values for clock-wise rotation, and negative values for counter-vise rotation.
*/
extern struct motors_rpm {
typedef struct motors_rpm {
int* motor1_rpm_pcm;
int* motor1_gpio;
int* motor2_rpm_pcm;
@@ -23,6 +23,6 @@ extern struct motors_rpm {
int* motor3_gpio;
int* motor4_rpm_pcm;
int* motor4_gpio;
};
} motors;
#endif