-
Notifications
You must be signed in to change notification settings - Fork 1
/
LocoSound.conf
63 lines (57 loc) · 1.88 KB
/
LocoSound.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Loco Sound Configuration file
#
# VERSION 2.0.0 released 18/04/2019
# Screen config - set to your preferred size or set SCREEN_MAX to YES to fill the full screen
SCREEN_WIDTH=1200
SCREEN_HEIGHT=768
SCREEN_MAX=NO
FONT_FILE=FreeSans.ttf
LOCO_NAME=DFB 7361
# Control Stand Comms config NB: comms is disabled in Windows version
BAUD_RATE=19200
SERIAL_DEVICE=/dev/ttyACM0
# Data File Paths - are relative to program location. Defaults assume running from ~/bin/Release or ~/bin/Debug in git subdirectory structure copy
SOUND_FILE_PATH=../../Sounds
GRAPHIC_FILE_PATH=../../Graphics
LOG_FILE_PATH=./Logs
# sound config - not recommended to have everything loud as mixer performance suffers
# vol left and right are used to balance the sound between disparate speakers in my loco
# max is 253, but best results with both channels at 127.
# LEFT=253 and RIGHT=0 will give full volume left and visa versa
# If sound sample is mono then these settings may be ignored, depending on type of sound sample
VOL_ENGINE_LEFT=190
VOL_ENGINE_RIGHT=60
VOL_DYNAMIC_LEFT=100
VOL_DYNAMIC_RIGHT=100
VOL_AIRCOMPRESSOR_LEFT=90
VOL_AIRCOMPRESSOR_RIGHT=160
VOL_TRACTION_LEFT=127
VOL_TRACTION_RIGHT=127
VOL_HORN_LEFT=60
VOL_HORN_RIGHT=190
# Byte offsets into 'REVUP.WAV' file to get correct start and end points
REV_UP_IDLE=0
REV_UP_NOTCH1=200000
REV_UP_NOTCH2=385000
REV_UP_NOTCH3=530000
REV_UP_NOTCH4=700000
REV_UP_NOTCH5=875000
REV_UP_NOTCH6=1010000
REV_UP_NOTCH7=1225000
REV_UP_NOTCH8=99999999
# Byte offsets into 'REVDOWN.WAV' file to get correct start and end points
REV_DN_NOTCH8=0
REV_DN_NOTCH7=60000
REV_DN_NOTCH6=120000
REV_DN_NOTCH5=180000
REV_DN_NOTCH4=240000
REV_DN_NOTCH3=310000
REV_DN_NOTCH2=340000
REV_DN_NOTCH1=480000
REV_DN_IDLE=710000
# Fade times in milliseconds used when transitioning between sounds
FADE_SHORT=500
FADE_STD=1500
FADE_LONG=10000
# MAX amperage per motor - used to determine 100% for bar graphs
MAX_AMPS=25