Skip to content

Add pedal smoothness source#76

Merged
timklge merged 7 commits intomasterfrom
feat/pedal-smoothness
Mar 19, 2026
Merged

Add pedal smoothness source#76
timklge merged 7 commits intomasterfrom
feat/pedal-smoothness

Conversation

@timklge
Copy link
Copy Markdown
Owner

@timklge timklge commented Mar 15, 2026

fix #75

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Pedal Smoothness as a new selectable data source for the Powerbar extension (issue #75), including settings/UI support and the streaming/rendering logic.

Changes:

  • Add new SelectedSource.PEDAL_SMOOTHNESS and localized strings for the new source and its min/max range labels.
  • Persist new settings (minPedalSmoothness / maxPedalSmoothness) and expose them in the settings screen when Pedal Smoothness is selected.
  • Implement Pedal Smoothness streaming in Window and refactor several enums into datatypes/.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/src/main/res/values/strings.xml Adds EN strings for Pedal Smoothness source + min/max labels.
app/src/main/res/values-de/strings.xml Adds DE strings for Pedal Smoothness source + min/max labels.
app/src/main/kotlin/de/timklge/karoopowerbar/screens/MainScreen.kt Adds UI controls and persistence wiring for Pedal Smoothness min/max settings; switches to shared SelectedSource.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/SelectedSource.kt Moves SelectedSource out of the screen file and adds PEDAL_SMOOTHNESS.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/PowerStreamSmoothing.kt Extracts power smoothing enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/PedalBalanceSmoothing.kt Extracts pedal-balance smoothing enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/Gears.kt Extracts gears enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/FlightAttendantSuspensionStateValue.kt Extracts flight attendant state enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/FlightAttendantSuspensionMode.kt Extracts flight attendant mode enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/datatypes/FlightAttendantSuspensionLocation.kt Extracts flight attendant location enum from Window.
app/src/main/kotlin/de/timklge/karoopowerbar/Window.kt Adds Pedal Smoothness streaming + rendering; updates imports after enum extraction.
app/src/main/kotlin/de/timklge/karoopowerbar/Settings.kt Adds persisted min/max pedal smoothness settings fields and defaults; updates SelectedSource import.
app/src/main/kotlin/de/timklge/karoopowerbar/ForegroundService.kt Updates SelectedSource import path.
app/src/main/kotlin/de/timklge/karoopowerbar/CustomProgressBar.kt Updates SelectedSource import path.
app/build.gradle.kts Updates generated manifest release notes for this release.
README.md Documents Pedal Smoothness as a supported data source.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread app/src/main/kotlin/de/timklge/karoopowerbar/screens/MainScreen.kt Outdated
Comment thread app/src/main/kotlin/de/timklge/karoopowerbar/Window.kt Outdated
timklge and others added 3 commits March 17, 2026 21:57
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@timklge timklge merged commit 937956b into master Mar 19, 2026
1 check passed
@timklge timklge deleted the feat/pedal-smoothness branch March 19, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New data source request... Pedal Smoothness

2 participants