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

Update FF field names to match #10670 #506

Closed
wants to merge 1 commit into from

Conversation

ctzsnooze
Copy link
Member

Update Blackbox Log viewer field names to reflect the debug changes in #10670

@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2021

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
4.7% 4.7% Duplication

Comment on lines -414 to +417
'debug[0]':'Setpoint Delta Impl [Roll]',
'debug[1]':'Boost Amount',
'debug[2]':'Boost Amount Clip [Roll]',
'debug[3]':'Clip',
'debug[0]':'Raw FF Derivative [Roll]',
'debug[1]':'Cleaned FF Derivative ',
'debug[2]':'Cleaned Boost Amount [Roll]',
'debug[3]':'Duplicate Marker',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we have the habitual nightmare of the blackbox and configurator... we need to maintain backward compatibility :(

I don't remember to have done this before for the debug names, so I can't point to a sample at this moment... but if the "old" name is correct for old logs, then we can't simply rename them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see.

The current names aren't quite right in a lot of debug cases. In this case the existing names aren't right for 4.2 either :-)

If its tough to provide a compatibility solution for the debugs, could we make 'releases' that are correct for a given version of the software, in terms of debug names and waveform scaling ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt. A lot of people have different quads some of them in different versions, and expect all to be working... @mikeller what do you think in this case?
I cant try to look at the code this week to see if we can make this conditional depending on the version.

@github-actions
Copy link

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.

@ctzsnooze
Copy link
Member Author

I've tried a number of things to get blackbox to respond to a change in the names of fields when the debug name hasn't changed.
The easiest way is to add a new debug mode in the firmware, but we shouldn't need to do that.
If someone can figure how to version control those fields. there are quite a few that need updating. I'll do the work if someone can explain how to do it.

@ctzsnooze
Copy link
Member Author

Can be closed since #514 provided version control for debug names and included fixing the feedforward names. Thanks @McGiverGim

@ctzsnooze ctzsnooze closed this Jun 7, 2021
@ctzsnooze ctzsnooze deleted the Update-FF-field-names branch September 3, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants