-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Updates to log viewer for 4.3 #512
Conversation
I'm not too sure what you want to do: you have "removed" some code that lets old versions show the values in a correct manner, and only the new one is shown ok. Is difficult to me to follow the changes with all of this code removed... We must get to a solution where 4.2 logs are shown, at least, as good as in the current blackbox version, and 4.3 logs are shown in a correct way. The first to know, to fix that, is what are the differences between versions. Are the fields simply "renamed" or some of them have different values? I see some differences in the enumerations. Can you explain it here? I think I can point you to the correct changes then. If some values have simply being renamed, you can "mark" this in the Blackbox here: blackbox-log-viewer/js/flightlog_parser.js Line 316 in 7da5b00
In this way we "rename" some values from the header to the internal var, so you can make two different headers behave exactly the same. And about the fielddefs definition, we have a method at the end where we "adapt" them to old/new versions: blackbox-log-viewer/js/flightlog_fielddefs.js Line 462 in 7da5b00
Now I think you understand better the nightmare of backwards compatibility, when you work only in the firmware part you are unaware of all of that... |
I think we should wait with the dynamic notch changes. @KarateBrot says we're going back to using Q instead of bandwidth as there weren't any benefits to using constant bandwidth. |
@klutvott123 Yes, thanks for your objection. ==> Everything else is fine. I need to get the dynamic notch PR ready asap (probably tomorrow) to inform everyone. Edit: |
b2f3f99
to
7da5b00
Compare
@McGiverGim Thanks for your advice! I have tried to do the right things and apologise if it is not done right. I checked that a 4.3 and a 4.2 log would open values in the right places, that is the limit of my testing. The following fields are added in this PR. They are mostly new from 4.3, but some existed before and have not been added previously.
These fields are not used in 4.3, and have no specific translation as they aren't really updating a previous version.
The In 4.3 the enums for RC_SMOOTHING_TYPE, RC_SMOOTHING_INPUT_TYPE, RC_SMOOTHING_DERIVATIVE_TYPE and RC_INTERPOLATION are not required. The enum DYN_NOTCH_RANGE hasn't been used for a while. The enum for RC_SMOOTHING_MODE only needs to be OFF and ON, and the FILTER_TYPE member FIR hasn't been used in years, and we now will use PT2 and PT3. I don't know how to do version control for those enums. Should the old ones be left there? I've removed dyn_notch_bandwidth from the original proposal now we are going to stay with dyn_notch_q. I attempted to resolve the Soundcloud 'bugs'. Please let me know what I need to do now. Thanks |
It seems something is wrong with this PR, the changes have been lost... |
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.
The base is wrong. A first review asking for changes in the basic, once we have this right, we can go for the rest.
76c31e4
to
7c361ed
Compare
4283ec7
to
9ea32f9
Compare
5a5a393
to
da00dfa
Compare
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.
Commenting on code quality only
@haslinghuis - thanks for your suggestions and checks. I've done those whitespace tidy ups. |
b690da1
to
75ca2ef
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week. |
d2b0665
to
77a14d5
Compare
Thanks @blckmn this process should be really good - I'm confused as to why |
@ctzsnooze first conditions fails as one of the others fail. We could suppress output in this case but helps identify what's holding the auto-merge process. |
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.
@McGiverGim, @asizon: Are you ok with this, or are there still problems with backwards compatibility?
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.
Looks really better now @mikeller
77a14d5
to
cc68ffa
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
rebased and tested |
Requested changes have been implemented
<br/> </label> | ||
<input type="number" step="0.01" min="0" max="999" /> | ||
</td> | ||
<td name="feedforward_transition" class="bf-only"> |
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.
Why the transition has been removed? Betaflight 4.2 uses it if I'm not wrong...
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.
Thanks for checking.
ptermSRateWeight
is removed, but Transition
is still there, and still shows up normally when looking at 4.2 logs, and I think 4.1 also.
The name has been changed from feedforward_transition
to the camelCase form feedforwardTransition
, to match the form of all the other feedforward parameters.
AUTOMERGE: (FAIL)
|
Adds log header support for the new dynamic notch, rc_smoothing, and feedforward fields in 4.3 after inclusion of firmware PR #10723
A 4.2 or earlier log will display values in the appropriate boxes where possible, or in the 'unknown fields' box at the bottom.
This shows how the feedforward part of a log header appears with a 4.3 log
And here how the dynamic notch values look for 4.3
And rcSmoothing:
This supersedes the individual PRs #510 and #511.