1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-04-22 13:01:19 +02:00
Asbelos 4e57a80265 Squashed commit of the following:
commit 3ac2fff70d2339992654a7b0da5784dcc9450fcb
Author: Asbelos <asbelos@btinternet.com>
Date:   Tue Jul 23 15:40:36 2024 +0100

    Create momentum.md

commit a08195332f2387d5a9e4ad32bb4128fe0d4ad406
Author: Asbelos <asbelos@btinternet.com>
Date:   Mon Jul 22 21:57:47 2024 +0100

    Cleanup of DCC Class reminders

commit 002ec5f176645b3a616a387b0357f54d84f99ede
Author: Asbelos <asbelos@btinternet.com>
Date:   Mon Jul 22 12:42:43 2024 +0100

    Cleaning access to speedByte

commit 854ddb0c6c696c808586eb8febaabb52261266bb
Author: Asbelos <asbelos@btinternet.com>
Date:   Sun Jul 21 10:15:07 2024 +0100

    Fix momentum algorithm

commit 916d3baf63eeab5d49682e748ba15a527cd8afa9
Merge: ab72a75 27dc805
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Jul 19 10:14:06 2024 +0100

    Merge branch 'devel' into devel_momentum

commit ab72a75d8fe4ac3859655ede97de2f25973a8864
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Jul 19 08:33:50 2024 +0100

    EXRAIL MOMENTUM

commit 8a623aa1cbd6616126983e76ecb2fb0c3595b177
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Jul 18 20:31:58 2024 +0100

     Momentum
2024-07-23 15:42:35 +01:00

1.1 KiB

New Momentum feature notes:

The command station can apply momentum to throttle movements in the same way that a standards compliant DCC decoder can be set to do. This momentum can be defaulted system wide and overridden on individual locos. It does not use or alter the loco CV values and so it also works when driving DC locos. The momentum is applied regardless of the throttle type used (or even EXRAIL).

Momentum is specified in mS / throttle_step.

There is a new command <m cabid mS>

For example: <m 3 0> sets loco 3 to no momentum. <m 3 21> sets loco 3 to 21 mS/step. <m 0 21> sets the default momentum to 21mS/Step for all current and future locos that have not been specifically set. <m 3 -1> sets loco 3 to track the default momentum value.

EXRAIL A new macro MOMENTUM(mSecPerStep) sets the momentum value of the current tasks loco.

Note: Setting Momentum 7,14,21 etc is similar in effect to setting a decoder CV03 to 1,2,3. At present the same momentum value is used for acceleration and deceleration. The <m> command may be extended in future to separate these values.