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 SystemTrainMotor #107

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

rickjansen-dev
Copy link
Contributor

@rickjansen-dev rickjansen-dev commented Oct 12, 2020

I added the Train Motor as a BasicMotor. I'm not sure if that is correct though, but it does not seem to be able to get the speed from the device if I use TachoMotor. It works as expected (speed % and braking), tested it using a technic hub and a train motor.

Any power level under 10 will not make the/my motor run, I guess that aligns with the train remote supporting 10 different speed steps.

Closes #104

@tthiery tthiery added this to the v3.1 (non-breaking) milestone Oct 12, 2020
@tthiery tthiery added area-device-motor enhancement New feature or request labels Oct 12, 2020
@tthiery tthiery self-requested a review October 12, 2020 17:11
@tthiery
Copy link
Member

tthiery commented Oct 12, 2020

I take usually the liberty spying at https://github.com/nathankellenicki/node-poweredup ... they directly derive from BasicMotor ... so Power it is. No TachoMotor involved.

@tthiery tthiery merged commit 96d1f75 into sharpbrick:master Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-device-motor enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Train Motor (#88011) as a Device
2 participants