Changement compteur

This commit is contained in:
Serge NOEL
2026-02-23 13:21:15 +01:00
parent 49b731c26c
commit 1376be6797
3 changed files with 11 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ var Loco = {
Dir: LOCO_DIR.FORWARD,
Scale: 1, // Example real loco speed is 45Kmh/max, so what are step (128 for digital to represent 0-200Kmh) per Kmh
MaxSpeed: 100, // Max speed in DCC step (<129) to reach scale speed (e.g. 45Kmh)
TotalDist: 0, // Total distance traveled in kilometers (scaled)
setMode: function(mode) {
this.Mode = mode;
},