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

Specify myconfig in training #997

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

DocGarbanzo
Copy link
Contributor

Enable myconfig.py selection

When training from the command line using donkey train we can now add a path to a different myconfg.py file. This was reported as issue #976.

Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look like we dropped some functionality in the calibration command.

def parse_args(self, args):
parser = argparse.ArgumentParser(prog='calibrate', usage='%(prog)s [options]')
parser.add_argument(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the pwm-pin part of calibration has been removed. That means that the user cannot calibrate with the same pin configuration as the will use in their drivetrain. So for instance, what if they are using gpio to generate pwm? Was this removed for a reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this, this is a mistake coming from my rebase, reverted that change.

input_prompt = "Enter a PWM setting to test ('q' for quit) (0-180): "

elif args.pwm_pin is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here. Is there a reason the pwm_pin calibration argument was removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar error, coming from bad rebase, reverted this.

print("personal config: file not found ", personal_cfg_path)

# derived settings
if hasattr(cfg, 'IMAGE_H') and hasattr(cfg, 'IMAGE_W'):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These config variables are not used.

@DocGarbanzo DocGarbanzo force-pushed the specify_myconfig_in_training branch 2 times, most recently from bcd39ae to e310752 Compare March 18, 2022 08:36
Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This look good. Thanks.

@DocGarbanzo DocGarbanzo merged commit 4a20c18 into autorope:main Apr 4, 2022
DocGarbanzo added a commit that referenced this pull request Apr 22, 2022
Added missing argument in `donkey train`
DocGarbanzo added a commit that referenced this pull request Apr 23, 2022
Added missing argument in `donkey train`

(cherry picked from commit d5f01a1)
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