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

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from
Draft

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]+a84efd.zip https://nightly.link/LemLib/Gamepad/actions/artifacts/1722175779.zip;
pros c fetch [email protected]+a84efd.zip;
pros c apply [email protected]+a84efd;
rm [email protected]+a84efd.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
@ion098 ion098 added enhancement New feature or request needs testing This PR/bug report needs testing labels Sep 11, 2024
@PA055 PA055 changed the title Add controller text support feat ✨: Add controller text support Sep 23, 2024
@PA055 PA055 marked this pull request as draft September 23, 2024 23:33
PA055 and others added 22 commits September 25, 2024 18:15
testing in the vexide sim did not result in any errors, idk why
merged and resolved merge commits, also renamed controller.hpp/cpp into gamepad.hpp/cpp
This should fix the data aborts that would occur when running the code. Previously the code would access fields in Gamepad that were uninitialized, leading to the code crashing.
marked most functions in abstractScreen as abstract
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
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.

2 participants