mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-30 23:31:05 +00:00
ESP-IDF RC Motors Controls
This commit is contained in:
@@ -56,6 +56,8 @@ static esp_err_t rc_adc_init (void) {
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
static void set_motor_pcm(int *motors_rpm, duty) {}
|
||||
|
||||
static void rc_get_raw_data() {
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc1_handle, ADC1_CHAN0, &adc_raw[0][0]));
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc1_handle, ADC1_CHAN1, &adc_raw[0][1]));
|
||||
|
Reference in New Issue
Block a user