mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Fix non-working motor control commands
This commit is contained in:
parent
b015c15a7e
commit
a7b69f99d0
@ -132,8 +132,9 @@ void showTable() {
|
|||||||
void cliTestMotor(uint8_t n) {
|
void cliTestMotor(uint8_t n) {
|
||||||
Serial.printf("Testing motor %d\n", n);
|
Serial.printf("Testing motor %d\n", n);
|
||||||
motors[n] = 1;
|
motors[n] = 1;
|
||||||
|
delay(50); // ESP32 may need to wait until the end of the current cycle to change duty https://github.com/espressif/arduino-esp32/issues/5306
|
||||||
sendMotors();
|
sendMotors();
|
||||||
delay(5000);
|
delay(3000);
|
||||||
motors[n] = 0;
|
motors[n] = 0;
|
||||||
sendMotors();
|
sendMotors();
|
||||||
Serial.println("Done");
|
Serial.println("Done");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user