Fixed on_actionResetField_triggered() method #2157
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Describe your pull request.
Added hard-coded positions to the method in main_window.cpp that resets the field. Previous algorithm set invalid y-coordinate which prevents robots 0 and 3 from showing up on the field
Associated / Resolved Issue
Resolves # or ClickUp card
#86ayqjnmt - robot 0 and 3: learn how to configure ER-force sim
Design Documents
Link
Steps to Test
Test Case 1: Startup of simulator
Test Case 2: Resetting from Play, Stop, and Halt
Expected result:???
In most circumstances, the robots should form a rectangle 3-wide and 2-tall in the upper center of the field, and the ball should be in the center of the field.
Key Files to Review
Group 1
Group 2
Review Checklist
(Optional) Sub-issues (for drafts)
Note: if you find yourself breaking this PR into many smaller features, it may make sense to break up the PR into logical units based on these features.