Skip to content

Conversation

@blaughlin
Copy link

Added actuator for SunFounder car kit. https://youtu.be/lvZDpLVAIQY

Copy link
Contributor

Choose a reason for hiding this comment

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

- speed avoids an unnecessary multiplication.

Copy link
Contributor

Choose a reason for hiding this comment

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

We moved from print -> logging.

@DocGarbanzo
Copy link
Contributor

Hi @blaughlin - your code can't be merged, you have to rebase first.

changed print to logging
@blaughlin blaughlin force-pushed the SunFounderActuator branch from 3d9c8d7 to 40ab72b Compare June 26, 2021 18:18
logger.info('Set up back_wheels')
picar.setup()
# place path to your car's config file below
db_file = "/home/pi/SunFounder_PiCar-V/remote_control/remote_control/driver/config"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be passed as an argument, and then we should have two config parameters in cfg_complete.py:

SUNFOUNDER = False
SUNFOUNDER_RC_CFG_PATH = "/home/pi/SunFounder_PiCar-V/remote_control/remote_control/driver/config"

Add an entry in complete.py which does what you wrote in the comment above, i.e. change the throttle controller to your new part. Then it should work for the SunFounder car without tweaking any code, just an update of the myconfig.py file.

You should probably also write a comment in the class how to install the picar package.

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