Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Startup tunes #13

Merged
merged 26 commits into from
Apr 4, 2021
Merged

Startup tunes #13

merged 26 commits into from
Apr 4, 2021

Conversation

saidinesh5
Copy link

@saidinesh5 saidinesh5 commented Mar 15, 2021

Initial support for Startup tunes in Bluejay ESC

Requires: mathiasvr/bluejay#8

@mathiasvr
Copy link
Owner

Hi, I added a few commits.

I have now measured the beep pulses and made the frequency conversion more accurate, especially for higher frequencies.
I think this somehow messed up the timing of your melody a bit? However, this is now consistent with how it's played on the ESC. Not sure if this is related to your todo about bpm jumping around?

This should make editing bluejay startup tunes a lot less jumpy.
The bluejay startup melody format is now:
[
 [2 bytes of bpm],
 [1 byte of default octave],
 [1 byte of default duration],
 [62 (Temp4, Temp3) values]
]
@mathiasvr
Copy link
Owner

mathiasvr commented Apr 3, 2021

@saidinesh5 I tried to fix the playback by not using imprecise setTimeout.
Can you test if this works for you too startup_tunes_playback.

@saidinesh5 saidinesh5 marked this pull request as ready for review April 3, 2021 23:41
mathiasvr and others added 3 commits April 4, 2021 21:14
Using blheli_configurator's state: currentSettingsInstanceId
which gets incremented upon every read
@mathiasvr mathiasvr merged commit cc7f2f5 into mathiasvr:bluejay Apr 4, 2021
@mathiasvr mathiasvr mentioned this pull request Apr 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants