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

Seekbar more metrics #635

Merged
merged 10 commits into from
Apr 26, 2023
Merged

Conversation

VolkerGoeschl
Copy link
Contributor

@VolkerGoeschl VolkerGoeschl commented Mar 31, 2023

This allows showing different metrics in the searchbar for spotting spots of interrest in longer logs easier.
The dropdown to select those is right beside the workspace selection. The chosen mode will survive picking a different log from a file but will get reset to average throttle when loading a new file.
The following modes have been implemented (so far)
Average motor throttle: this is the old behavior
maximum Stick input: highest absolute value of (roll/pitch/yaw) (find snap-moves)
maximum Motor differential: difference of highest and lowest motor output (find fast moves/desyncs - thanks to Zoggbarr for the suggestion)

ref: #634

@github-actions

This comment has been minimized.

@blckmn
Copy link
Member

blckmn commented Mar 31, 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 -> FAIL
  • 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

js/flightlog_index.js Outdated Show resolved Hide resolved
js/flightlog_index.js Outdated Show resolved Hide resolved
js/flightlog_index.js Outdated Show resolved Hide resolved
js/flightlog_index.js Outdated Show resolved Hide resolved
js/main.js Outdated Show resolved Hide resolved
js/main.js Outdated Show resolved Hide resolved
Copy link
Member

@haslinghuis haslinghuis left a comment

Choose a reason for hiding this comment

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

Please fix lexical scoping and code smells

@haslinghuis
Copy link
Member

More code smells to solve 😋

haslinghuis
haslinghuis previously approved these changes Apr 1, 2023
@VolkerGoeschl
Copy link
Contributor Author

Now it seems to be accepted by SonarCloud.
Do I need to squash or rebase to get rid of al those micro-commits?
@haslinghuis thank you for your patience!

@haslinghuis
Copy link
Member

We have squash and merge, so all good.

@github-actions

This comment has been minimized.

@nerdCopter
Copy link
Member

the default window size at launch always pushes this off-view for me.
image

thinking the entire bar needs some auto-flow/sizing work :(

thoughts @haslinghuis ??

@RubberQuads
Copy link

the default window size at launch always pushes this off-view for me. image

thinking the entire bar needs some auto-flow/sizing work :(

thoughts @haslinghuis ??

I want to put it into the seekbar like it's done in the spectrum analyzer. But I need to get a grasp of how the canvases work before -> can we leave it as is for now and I change it to something better in another PR next week (I'm on vacation right now)?

(like its done in the spectrum plots)
@sonarcloud
Copy link

sonarcloud bot commented Apr 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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
0.0% 0.0% Duplication

@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 Apr 26, 2023

[moved selector into the seekbar](https://github.com/betaflight/blackbox-log-viewer/pull/635/commits/2232583ac416fb4832452a71fcbf2b1100446def) is very sleek ❤️

for others to review:
invisible until mouse over
image

mouse-over:
image

upon modify (bold outline then fades to normal):
image

@nerdCopter
Copy link
Member

please mark any of the above suggestions resolved if they are indeed resolved.
image

@@ -314,6 +315,36 @@ function BlackboxLogViewer() {
}
}

function renderSeekBarPicker(){
var
Copy link
Member

Choose a reason for hiding this comment

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

Slipped through Sonarcloud bot :)

@haslinghuis haslinghuis merged commit 69ab127 into betaflight:master Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

5 participants