From 2e9e69e0839386a022887e41279acea739de77df Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Sat, 28 Dec 2024 22:30:00 -0500 Subject: [PATCH] ESP-IDF Robot Controls --- ESP-IDF_Robot/main/controls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP-IDF_Robot/main/controls.h b/ESP-IDF_Robot/main/controls.h index 21745e249..d7f4a1ced 100644 --- a/ESP-IDF_Robot/main/controls.h +++ b/ESP-IDF_Robot/main/controls.h @@ -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 \ No newline at end of file