bolderflight / sbus

Arduino and CMake library for communicating with SBUS receivers and servos.
MIT License
373 stars 132 forks source link

sbus signal generated with this library has a non-standard length of 2.6ms instead of 3ms #33

Closed alanypf closed 4 years ago

alanypf commented 4 years ago

I tested the sbus signal generated by the library has a non-standard signal length of 2.6ms instead of a standard length of 3ms. So the sbus signal cannot be recognized by betaflight controller which required 3ms length according to its source code. The strange part is if I use the same code in the write() function and with correct serial port setup 100000 baud rate and 8SE2, my ESP32 will generate a 3ms signal and could be recognized by the controller. I am confused about this phenomenon. Does anyone have any idea why this happened? Thank you very much.

alanypf commented 4 years ago

Sorry for the interruption. The problem is actually about the serial port. One might need to use a reliable one.