-
Notifications
You must be signed in to change notification settings - Fork 43
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
sbus output msp support #202
Conversation
7e6c56d
to
a65c95c
Compare
sbusOutConfigMutable()->sourceRangeHigh[index] = sbufReadS16(src); | ||
|
||
// You need to reset FC after updating ->frameRate. | ||
sbusOutConfigMutable()->frameRate = sbufReadU8(src); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced that repeating the framerate parameter with every channel is the right thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have coded the unto deal with it... But maybe a better option is to not do msp frame rate changes.. And make that cli only?
Reality is that the default frame rate is probably perfect in 99.99% of cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove the frameRate from this MSP call. It's not correct to do it this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced that repeating the framerate parameter with every channel is the right thing to do.
It's just a compromise of simpleness and cleanness. I feel it's not super necessary to create a separate protocol for a single uncommon byte.
I have coded the unto deal with it... But maybe a better option is to not do msp frame rate changes.. And make that cli only?
Reality is that the default frame rate is probably perfect in 99.99% of cases.
I think we should keep all tunables available through MSP, so that when ready we can configure everything from the radio.
Remove frameRate from this MSP. Then it does not need reboot either.
This isn't solving the reboot issue. Reboot is not needed if I don't change the frameRate. It is needed when changed, regardless where (other MSP or cli).
This is because frameRate is read on init. The way to improve is to add rescheduleTask
here too but this doesn't seem to follow other MSP conventions (MSP shouldn't care how the params are used)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove frameRate from this MSP.
Then it does not need reboot either.
Read:
Write: