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

feat ✨: Add controller text support #1

Merged
merged 77 commits into from
Dec 7, 2024
Merged

feat ✨: Add controller text support #1

merged 77 commits into from
Dec 7, 2024

Conversation

PA055
Copy link
Contributor

@PA055 PA055 commented May 22, 2024

Summary

creates an abstract text screen that gets polled for updates and updates the text on the controller or rumbles

Motivation

text on the controller is really the only way to give feedback to the driver during a match, rumbles are nice too

Test Plan

WIP

Download the template for this pull request:

Note

This is auto generated from Add Template to Pull Request

curl -o [email protected]+85db01.zip https://nightly.link/LemLib/Gamepad/actions/artifacts/2288685603.zip;
pros c fetch [email protected]+85db01.zip;
pros c apply [email protected]+85db01;
rm [email protected]+85db01.zip;

@ion098 ion098 self-requested a review May 22, 2024 00:34
include/gamepad/controller.hpp Outdated Show resolved Hide resolved
include/gamepad/controller.hpp Outdated Show resolved Hide resolved
include/gamepad/controller.hpp Outdated Show resolved Hide resolved
include/gamepad/controller.hpp Show resolved Hide resolved
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
include/gamepad/controller.hpp Outdated Show resolved Hide resolved
ion098
ion098 previously approved these changes May 23, 2024
@ion098 ion098 requested a review from Aang099 May 23, 2024 16:51
src/gamepad/controller.cpp Outdated Show resolved Hide resolved
@ion098 ion098 dismissed their stale review June 2, 2024 19:13

API needs reworking

@ion098 ion098 marked this pull request as draft June 2, 2024 19:13
@PA055 PA055 marked this pull request as ready for review June 4, 2024 22:12
PA055 and others added 13 commits October 11, 2024 20:58
needed to return after writing to a line, and also removed debug statements
i initialized screen cleared to the wrong value, and i forgot to clear it
the logic in the abstract screen seems weird based on the behavior
rumbles in alerts were being repeated constantly for the duration of the alert, i had to clear it after 1 iteration
still bugged, debug prints are included however commented out
@ion098 ion098 marked this pull request as ready for review November 4, 2024 16:50
@ion098 ion098 requested a review from SizzinSeal November 12, 2024 23:28
Copy link
Member

@SizzinSeal SizzinSeal left a comment

Choose a reason for hiding this comment

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

Bit rough around the edges but mostly fine

include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
include/gamepad/screens/abstractScreen.hpp Outdated Show resolved Hide resolved
src/gamepad/gamepad.cpp Outdated Show resolved Hide resolved
src/gamepad/gamepad.cpp Outdated Show resolved Hide resolved
src/gamepad/gamepad.cpp Outdated Show resolved Hide resolved
src/gamepad/screens/defaultScreen.cpp Show resolved Hide resolved
src/main.cpp Outdated Show resolved Hide resolved
debug.log Outdated Show resolved Hide resolved
include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
include/gamepad/gamepad.hpp Outdated Show resolved Hide resolved
src/gamepad/gamepad.cpp Show resolved Hide resolved
@ion098 ion098 requested review from SizzinSeal and ion098 November 21, 2024 17:20
Copy link
Collaborator

@ion098 ion098 left a comment

Choose a reason for hiding this comment

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

LGTM, this just needs merge conflicts to be fixed

@ion098 ion098 dismissed SizzinSeal’s stale review December 7, 2024 15:36

Changes addressed

@ion098 ion098 merged commit 4afd080 into LemLib:main Dec 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs testing This PR/bug report needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants