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

Add simple stats table #661

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Conversation

atomgomba
Copy link
Contributor

Display a table of extreme values under the values table. Show stats like min/max sticks position, min/max altitude, etc. I'm using this to quickly evaluate the quality of data from test flights.

js/main.js Outdated Show resolved Hide resolved
@nerdCopter
Copy link
Member

screenshot?

@atomgomba
Copy link
Contributor Author

screenshot?

image

@github-actions

This comment has been minimized.

js/main.js Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

.map(chunk => chunk.frames).flatten().value(),
fields = _.map(flightLog.getMainFieldNames(), (f) => {
// fix typo. potential bug in either FW or BBE
if (f == "BaroAlt") { return "baroAlt"; } else { return f; }
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the heads up! I'm going to include request from #309 too 👌

@github-actions

This comment has been minimized.

@nerdCopter
Copy link
Member

what are the requirements? may need some error-checking
image
image

@blckmn
Copy link
Member

blckmn commented Oct 11, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> FAIL
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> FAIL
  • assigned to an approver -> FAIL
  • approver count at least three -> FAIL

@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2023

SonarCloud Quality Gate failed.    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
16.3% 16.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@atomgomba
Copy link
Contributor Author

atomgomba commented Oct 12, 2023

what are the requirements? may need some error-checking

Good catch! I didn't do testing using logs without GPS data, classic. Pushed the fix, it now should just skip fields with missing data.

@github-actions
Copy link

Do you want to test this code? Here you have an automated build:
Betaflight-Blackbox-Explorer-Linux
Betaflight-Blackbox-Explorer-macOS
Betaflight-Blackbox-Explorer-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@nerdCopter
Copy link
Member

nerdCopter commented Oct 12, 2023

no crashes on many logs. here is sample of 4.
image

approving, but did not investigate actual code.

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.

.map(chunk => chunk.frames).flatten().value(),
fields = _.map(flightLog.getMainFieldNames(), (f) => {
// fix typo. potential bug in either FW or BBE
if (f === "BaroAlt") { return "baroAlt"; } else { return f; }
Copy link
Member

Choose a reason for hiding this comment

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

Parameter was renamed in betaflight/betaflight#11911

@haslinghuis haslinghuis merged commit 9771888 into betaflight:master Nov 12, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants