mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-13 12:10:13 +00:00
ESP-IDF RC Motors Controls
This commit is contained in:
@@ -58,9 +58,9 @@ static esp_err_t rc_adc_init (void) {
|
|||||||
|
|
||||||
static void set_motor_pcm(int* motor , int duty) {
|
static void set_motor_pcm(int* motor , int duty) {
|
||||||
if (duty >= 8191)
|
if (duty >= 8191)
|
||||||
&motor = 8191;
|
motor -> 8191;
|
||||||
else
|
else
|
||||||
&motor = duty;
|
motor -> duty;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rc_get_raw_data() {
|
static void rc_get_raw_data() {
|
||||||
|
Reference in New Issue
Block a user