Skip to content

Rewrite startup and drive code for on-the-go settings changes #34

@Voidless7125

Description

@Voidless7125

Goal:
Refactor the startup and drive logic to support dynamic settings changes during runtime.

Trigger:
When the user presses the Down button 3 times consecutively, a settings panel should open.

Settings Panel Options:
Display options either on:

the VEX Controller screen (preferred), or

the VEX Brain screen (if controller display is not feasible).

✅ Requirements:
Detect triple-down input

Implement logic to track 3 consecutive "Down" button presses with a short time window (e.g. 1.5s).

Reset counter if time between presses exceeds the window.

Display a settings panel

Show a simple menu with changeable runtime settings (e.g., drive speed, mode toggle).

Panel can be shown on either:

Controller screen (fallback)

Brain screen (normal)

Integrate with drive control

The drive logic should read from the updated settings in real-time.

Ensure no need to restart the program to apply changes.

Maintain compatibility

Keep existing functionality intact unless superseded.

Ensure code readability and modularity (use functions or classes where possible).

📂 Repository Context:
Please scan the repo structure to identify:

Where startup and drive logic are currently located.

Existing display/UI code for either controller or brain.

💡 Suggestions (optional, if you suggest an improvement to this design):
Recommend better input methods if triple-down isn't reliable.

Metadata

Metadata

Labels

difficulty-03-hardInvolves more challenging problems and/or developing within and revising the program and C++.enhancementNew feature or request

Projects

Status

In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions