-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Specify myconfig in training #997
Conversation
There was a problem hiding this 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.
donkeycar/management/base.py
Outdated
def parse_args(self, args): | ||
parser = argparse.ArgumentParser(prog='calibrate', usage='%(prog)s [options]') | ||
parser.add_argument( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
donkeycar/management/base.py
Outdated
input_prompt = "Enter a PWM setting to test ('q' for quit) (0-180): " | ||
|
||
elif args.pwm_pin is not None: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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'): |
There was a problem hiding this comment.
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.
bcd39ae
to
e310752
Compare
There was a problem hiding this 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.
e310752
to
da2e9ec
Compare
Enable myconfig.py selection
When training from the command line using
donkey train
we can now add a path to a differentmyconfg.py
file. This was reported as issue #976.