¿ªÔÆÌåÓý

Locked Re: JMRI Jython programming question


 

Erich, Nick,

Thank you both for your replies.
I am glad that I could help.

Klaus


Am 22.07.2018 um 14:41 schrieb Erich Whitney:

Klaus, thank you! This helps a lot!!!
This is the nugget that was eluding me:
int value = ( int ) Math. ceil((steps - 1 ) * speed);
I think for the purpose I'm trying to achieve, I can set the throttle to 28 steps, use this to get the speed values that map to those and then when I'm done playing with the speed table, resume 128 speed step mode for smoother operation.
-Erich

Join [email protected] to automatically receive all group messages.