mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-30 11:36:13 +01:00
Compare commits
No commits in common. "2894a34591a819f8e0a6eeeb38b84b39d02839cb" and "2d58d06b193065f45506497cd6564b0eea1e1c2f" have entirely different histories.
2894a34591
...
2d58d06b19
2
DCC.h
2
DCC.h
|
@ -109,7 +109,7 @@ public:
|
||||||
byte momentumA, momentumD;
|
byte momentumA, momentumD;
|
||||||
byte targetSpeed; // speed set by throttle
|
byte targetSpeed; // speed set by throttle
|
||||||
};
|
};
|
||||||
static const int16_t MOMENTUM_FACTOR=7;
|
static const int16_t MOMENTUM_FACTOR=8;
|
||||||
static const byte MOMENTUM_USE_DEFAULT=255;
|
static const byte MOMENTUM_USE_DEFAULT=255;
|
||||||
static byte getMomentum(LOCO * slot);
|
static byte getMomentum(LOCO * slot);
|
||||||
|
|
||||||
|
|
|
@ -5,19 +5,16 @@ The momentum is applied regardless of the throttle type used (or even EXRAIL).
|
||||||
|
|
||||||
Momentum is specified in mS / throttle_step.
|
Momentum is specified in mS / throttle_step.
|
||||||
|
|
||||||
There is a new command `<m cabid accelerating [brake]>`
|
There is a new command `<m cabid mS>`
|
||||||
where the brake value defaults to the accelerating value.
|
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
`<m 3 0>` sets loco 3 to no momentum.
|
`<m 3 0>` sets loco 3 to no momentum.
|
||||||
`<m 3 21>` sets loco 3 to 21 mS/step.
|
`<m 3 21>` sets loco 3 to 21 mS/step.
|
||||||
`<m 3 21 42>` sets loco 3 to 21 mS/step accelerating and 42 mS/step when decelerating.
|
|
||||||
|
|
||||||
`<m 0 21>` sets the default momentum to 21mS/Step for all current and future locos that have not been specifically set.
|
`<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.
|
`<m 3 -1>` sets loco 3 to track the default momentum value.
|
||||||
|
|
||||||
EXRAIL
|
EXRAIL
|
||||||
A new macro `MOMENTUM(accel [, decel])` sets the momentum value of the current tasks loco ot the global default if loco=0.
|
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/CV04 to 1,2,3.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user