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 methods to obtain the current config file from the robot #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arjvik
Copy link
Member

@arjvik arjvik commented Apr 9, 2020

Using this commit:

String configName = RC.config().getName();

You can actually do several interesting things with the RobotConfigFile and RobotConfigFileManager objects (that's why I left them accessible). the RobotConfigFile allows you to obtain an XML parser of the actual current configuration, as well as determine it's file path, so you can modify it and reload the config during robot operation (doing that during an OpMode would probably mess stuff up though). The RobotConfigFileManager is more of an implementation detail of the RC phone (hence why I left it accessible only from the activity) but can let you get finer control over how configurations are parsed and selected.

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.

1 participant