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

Show warning on connect when ACC is not calibrated. #1903

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

mikeller
Copy link
Member

@mikeller mikeller commented Mar 1, 2020

Presents a warning to the user when connecting if ACC is enabled and not calibrated:

image

I think this is a better alternative to betaflight/betaflight#9458, as it points the user to the instructions for a correct calibration.

The list of warnings is built dynamically, so that other problems, like insufficient filtering, can be added and displayed as well.

@mikeller mikeller added this to the 10.7.0 milestone Mar 1, 2020
@mikeller mikeller force-pushed the show_acc_calibration_warning branch 3 times, most recently from d56b779 to 95c301a Compare March 1, 2020 08:38
@McGiverGim
Copy link
Member

Maybe add a comment about the quad will not arm if enabled and not calibrated?

@mikeller mikeller force-pushed the show_acc_calibration_warning branch from 95c301a to 5ae4d5a Compare March 1, 2020 11:56
@mikeller
Copy link
Member Author

mikeller commented Mar 1, 2020

image

@mikeller
Copy link
Member Author

mikeller commented Mar 2, 2020

@McGiverGim: Is this ok now?

McGiverGim
McGiverGim previously approved these changes Mar 2, 2020
Copy link
Member

@McGiverGim McGiverGim left a comment

Choose a reason for hiding this comment

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

True, I forgot about it sorry...

@mikeller
Copy link
Member Author

mikeller commented Mar 4, 2020

Added a check to only report missing acc calibration if ACC is enabled.

Also, made the warning a bit more wordy:

image

@sonarcloud
Copy link

sonarcloud bot commented Mar 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 3215 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

Copy link
Member

@McGiverGim McGiverGim left a comment

Choose a reason for hiding this comment

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

It's good!

@mikeller mikeller merged commit 8607d82 into betaflight:master Mar 4, 2020
@mikeller mikeller deleted the show_acc_calibration_warning branch March 4, 2020 20:28
@asizon
Copy link
Member

asizon commented Mar 11, 2020

@mikeller I discovered a bug that occurs right after this commit and I am not able to fix it. From what I have been able to analyze I think the error is inside serial_backend.js. Here is the problem after press Flash Firmware buttton(to reproduce only go to Firmware flasher tab and press flash button):
flashbug

@asizon
Copy link
Member

asizon commented Mar 11, 2020

ok, i got it! #1915

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.

3 participants