sharpbrick / powered-up

.NET implementation of the LEGO PoweredUp Protocol
MIT License
98 stars 19 forks source link

add SystemTrainMotor #107

Closed rickjansen-dev closed 3 years ago

rickjansen-dev commented 3 years ago

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 commented 3 years ago

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.