mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 11:48:48 +00:00
pwm
This commit is contained in:
@@ -379,8 +379,8 @@ void onDataReceived (const uint8_t *mac_addr, const uint8_t *data, uint8_t data_
|
||||
rc_x = buf.x_axis; // Save joystic x-axis value
|
||||
rc_y = buf.y_axis; // Save joystic y-axis value
|
||||
update_pwm(rc_x, rc_y);
|
||||
mqtt_update_pwm_1(rc_x);
|
||||
mqtt_update_pwm_2(rc_y);
|
||||
mqtt_update_pwm_1(rc_x); // Publish PWM-1 on MQTT Broker
|
||||
mqtt_update_pwm_2(rc_y); // Publish PWM-2 on MQTT Broker
|
||||
}
|
||||
|
||||
void ultrasonic_task (void *arg) {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#ifndef MOTOR_CONTROLS_H
|
||||
#define MOTOR_CONTROLSC_H
|
||||
#define MOTOR_CONTROLS_H
|
||||
|
||||
// Interpolate value (x) based on raw reading, min/max limits.
|
||||
/*
|
||||
|
Reference in New Issue
Block a user