mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-15 11:06:44 +00:00
RC
This commit is contained in:
@@ -760,7 +760,7 @@ static void temp_sensor_task (void *arg) {
|
|||||||
// Task function to read joystick values and update motors rotation speeds.
|
// Task function to read joystick values and update motors rotation speeds.
|
||||||
static void rc_task (void *arg) {
|
static void rc_task (void *arg) {
|
||||||
while (true) {
|
while (true) {
|
||||||
rc_get_raw_data();
|
//rc_get_raw_data(); // Uncomment to read on-board joystick
|
||||||
|
|
||||||
ledc_set_duty(MTR_MODE, MTR_FRONT_LEFT, m.motor1_rpm_pcm);
|
ledc_set_duty(MTR_MODE, MTR_FRONT_LEFT, m.motor1_rpm_pcm);
|
||||||
ledc_update_duty(MTR_MODE, MTR_FRONT_LEFT);
|
ledc_update_duty(MTR_MODE, MTR_FRONT_LEFT);
|
||||||
|
Reference in New Issue
Block a user