mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-16 12:34:16 +00:00
RC
This commit is contained in:
@@ -159,6 +159,8 @@ typedef struct struct_message {
|
||||
uint8_t motor_a_pwm;
|
||||
} struct_message;
|
||||
|
||||
static int x = 0, y = 0;
|
||||
|
||||
uint8_t broadcastAddress[] = {};
|
||||
struct_message controlData;
|
||||
esp_now_peer_info_t peerInfo;
|
||||
@@ -812,6 +814,8 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_
|
||||
ESP_LOGI(TAG, "PCM 2: 0x%04X", buf.motor2_rpm_pcm);
|
||||
ESP_LOGI(TAG, "PCM 3: 0x%04X", buf.motor3_rpm_pcm);
|
||||
ESP_LOGI(TAG, "PCM 4: 0x%04X", buf.motor4_rpm_pcm);
|
||||
x = buf.x_axis;
|
||||
y = buf.y_axis;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user