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

Use multiplier for motor PWM #112

Open
jeff-winn opened this issue Dec 31, 2021 · 2 comments
Open

Use multiplier for motor PWM #112

jeff-winn opened this issue Dec 31, 2021 · 2 comments
Labels
feature New feature or request

Comments

@jeff-winn
Copy link
Owner

As a user being able to swap out equipment is helpful for reducing cost. The current values used by the PWM signals are specific to the motor driver being used.

Rather than using a hard value in the code, use a multiplier instead with the actual value coming from the config file on the SD card.

@jeff-winn jeff-winn added the feature New feature or request label Dec 31, 2021
@jeff-winn
Copy link
Owner Author

Related to #90

@jeff-winn
Copy link
Owner Author

Most likely the config file will need to store a percentage between 0 and 100 to indicate the motor strength. This value would be used in defining the percentage of the motors for the flywheels and the pusher.

The motor controller min and max defines the actual values specific to the driver/ESC being used that gets multiplied by the percentage to determine the actual value fed into the PWM generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant