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

Add option to mock specific values in presets. #94

Merged
merged 4 commits into from
Sep 12, 2020
Merged

Conversation

glipR
Copy link
Contributor

@glipR glipR commented Sep 11, 2020

Allows for presets to change class constants and other things with mocking.

To test, try adding the following to ev3sim/presets/soccer.yaml:

settings:
  ev3sim.presets.soccer.SoccerInteractor.GOAL_SCORE_PAUSE_DELAY: 10

This will make the delay after soccer goals are scored be 10.

This is the change that will allow specific randomisation constants to be changed via preset @peter-drew, and also after merging this I'll probably remove the command line flag for turning on/off randomisation, we'll instead have to presets, soccer (default) and soccer_randomised.

@peter-drew peter-drew mentioned this pull request Sep 11, 2020
9 tasks
@glipR glipR merged commit 5d5a39c into main Sep 12, 2020
@glipR glipR deleted the preset_settings branch September 12, 2020 03:48
This pull request was closed.
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.

2 participants