mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 10:50:52 +00:00
manual
This commit is contained in:
@@ -8,6 +8,17 @@ Configuration Variables
|
|||||||
|
|
||||||
uint8_t receiver_mac[ESP_NOW_ETH_ALEN] = {0xe4, 0xb0, 0x63, 0x17, 0x9e, 0x44};
|
uint8_t receiver_mac[ESP_NOW_ETH_ALEN] = {0xe4, 0xb0, 0x63, 0x17, 0x9e, 0x44};
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int x_axis; // Joystick x-position
|
||||||
|
int y_axis; // Joystick y-position
|
||||||
|
bool nav_bttn; // Joystick push button
|
||||||
|
bool led; // LED ON/OFF state
|
||||||
|
uint8_t motor1_rpm_pwm; // PWMs for 4 DC motors
|
||||||
|
uint8_t motor2_rpm_pwm;
|
||||||
|
uint8_t motor3_rpm_pwm;
|
||||||
|
uint8_t motor4_rpm_pwm;
|
||||||
|
} __attribute__((packed)) sensors_data_t;
|
||||||
|
|
||||||
Sending & Ecapsulating Data
|
Sending & Ecapsulating Data
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user