ESP-IDF Robot Controls

This commit is contained in:
2024-12-28 22:45:32 -05:00
parent 8ac26d54ae
commit cd1484d2fe

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. Positive PCM values for clock-wise rotation, and negative values for counter-vise rotation.
*/ */
typedef struct motors_rpm { struct motors_rpm {
int motor1_rpm_pcm; int motor1_rpm_pcm;
int motor1_gpio; int motor1_gpio;
int motor2_rpm_pcm; int motor2_rpm_pcm;
@@ -23,7 +23,7 @@ typedef struct motors_rpm {
int motor3_gpio; int motor3_gpio;
int motor4_rpm_pcm; int motor4_rpm_pcm;
int motor4_gpio; int motor4_gpio;
} Motors; };
extern Motors *motors; extern Motors *motors;