Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

1khz update rate for F.Sim competitions #3759

Merged
merged 2 commits into from
Jul 5, 2023
Merged

1khz update rate for F.Sim competitions #3759

merged 2 commits into from
Jul 5, 2023

Conversation

3djc
Copy link
Collaborator

@3djc 3djc commented Jul 4, 2023

This make the mixer run at 1000Hz when in Joystick mode (Needed for F.Sim competitors), also displays mixer run time in statistic/debug screen.

BOTH MODULE need to be off on model setup page to get that speed

Result of work with TDog on discord

image

(Windows may require special drivers to reach that speed)

@3djc
Copy link
Collaborator Author

3djc commented Jul 4, 2023

Tested ok on a 'regular' windows PC without adverse effect, if someone with a Mac could just test their regular sim still works ok

@philmoz
Copy link
Collaborator

philmoz commented Jul 4, 2023

Will running the mixer at twice the speed affect battery life?

Should it be an optional setting as 99.9% of users probably don't need it?

@philmoz
Copy link
Collaborator

philmoz commented Jul 4, 2023

The comment in mixer_scheduler.h needs to be updated - still says '2ms'

@pfeerick
Copy link
Member

pfeerick commented Jul 4, 2023

Given that the actual heavy power consumers (the RF modules) are turned off... I would think a power consumption increase (if any) - is negligible. RF and backlight consume the bulk of the power.

@pfeerick
Copy link
Member

pfeerick commented Jul 5, 2023

Some stats from the TX16S you might be interested in @philmoz basically at best there is a 1mA increase in power consumption due to this PR... in a system that is very power hungry in many other ways ;)

Voltage: 8.2v

backlight no RF (mA) internal MPM (mA) joystick 2.10 (mA) joystick PR (mA)
min 127 216 127-128 128-129
max 293 414 293-294
off 123 212

@pfeerick
Copy link
Member

pfeerick commented Jul 5, 2023

Works as described for me also on TX16S... jumps from 500Hz to 1000Hz as measured by https://fpvsim.com/radio-tester

@pfeerick pfeerick merged commit 8f01308 into main Jul 5, 2023
@pfeerick pfeerick deleted the 3djc/1ms-joystick branch July 5, 2023 10:15
@pfeerick pfeerick added the enhancement ✨ New feature or request label Jul 5, 2023
@pfeerick pfeerick added this to the 2.10 milestone Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants