mathiasvr / bluejay

:bird: Digital ESC firmware for controlling brushless motors in multirotors
GNU General Public License v3.0
478 stars 48 forks source link

feat: Implement a wait after startup_beep_done to sync multiple ESCs #22

Open saidinesh5 opened 3 years ago

saidinesh5 commented 3 years ago

As we allow each ESCs on a craft to have their own startup tune, each of them may finish playing at a different time. Hence we implpement a 16 bit configurable wait after playing startup tune. This should allow us to wait up to 65536 ms.

The Eeprom variables to configure these wait times are:

Eep_Pgm_Tune_Wait_MSB_ms - most significant byte Eep_Pgm_Tune_Wait_LSB_ms - least significant byte

Total wait = Eep_Pgm_Tune_Wait_MSB_ms*255 + Eep_Pgm_Tune_Wait_LSB_ms

TODO: Make sure these values are set to 0 by default

Quick-Flash commented 2 years ago

Any reason why this isn't ready to be merged? Wouldn't this help fix #19 ?