mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 07:16:08 +00:00
pwm
This commit is contained in:
@@ -98,6 +98,13 @@ static void update_pwm (int rc_x, int rc_y) {
|
|||||||
if (1024 < x < 2048 && 1024 < y < 2048) {
|
if (1024 < x < 2048 && 1024 < y < 2048) {
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
// Smooth update
|
||||||
|
if (y >= 1500) {
|
||||||
|
m.motor1_rpm_pcm = y - x;
|
||||||
|
m.motor2_rpm_pcm = ;
|
||||||
|
}
|
||||||
|
// -------------
|
||||||
|
|
||||||
// Turn Left
|
// Turn Left
|
||||||
if (x == 8190 && y == -8190) {
|
if (x == 8190 && y == -8190) {
|
||||||
m.motor1_rpm_pcm = 6172;
|
m.motor1_rpm_pcm = 6172;
|
||||||
|
Reference in New Issue
Block a user