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 a LocoMotor class #2

Open
2bndy5 opened this issue Sep 22, 2019 · 0 comments
Open

add a LocoMotor class #2

2bndy5 opened this issue Sep 22, 2019 · 0 comments
Assignees
Labels
beginner this opportunity is for beginners enhancement New feature or request good first issue Good for newcomers

Comments

@2bndy5
Copy link
Owner

2bndy5 commented Sep 22, 2019

There is a use case for instantiating a single Solenoid object with 2 pins (using 2 separate solenoids in concert): an engine akin to that that of actual locomotive trains. Think about it! Each solenoid applies force in alternating turns... Of course, this requires a new Drivetrain child class that coordinates the solenoids based on a boolean-ized sensor (like a pressure switch or hall sensor) to determine when to alternate applied force between solenoids (the default behavior of the Solenoid class when its value is changed from positive to negative and vice versa).

@2bndy5 2bndy5 added enhancement New feature or request good first issue Good for newcomers labels Sep 22, 2019
@2bndy5 2bndy5 self-assigned this Sep 22, 2019
@2bndy5 2bndy5 added the beginner this opportunity is for beginners label Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner this opportunity is for beginners enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant