This commit is contained in:
2025-08-06 03:27:22 -04:00
parent 18aad6bf70
commit 2133918eeb
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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.
/*