I have been corresponding with an Open Rails programmer working on making the control displays in OR match their operations in MSTS. For most cases, it seems straightforward. However, in the case of some two needle displays where there is one needle for driving current (positive) and another for dynamic braking current (negative), some of the values found in the .cvf file appear puzzling.
I am looking at the file "EMD-GP38-BNSF-H1-AS.cvf" for Charlie Sibaja's GP38 cabview. The entries for the red (dynamic brake) needle and white (driving current) appear as follows:
Dial (
Type ( LOAD_METER DIAL )
Position ( 423 159 5 31 )
Graphic ( "..//..//SHR.CABS//EMD-STD-1-CAB//needleloadred.ACE" )
Style ( POINTER )
ScaleRange ( -900 0)
ScalePos ( 319 250)
Units ( AMPS )
Pivot ( 27 )
DirIncrease ( 1 )
)
Dial (
Type ( LOAD_METER DIAL )
Position ( 423 159 5 31 )
Graphic ( "..//..//SHR.CABS//EMD-STD-1-CAB//needleloadwhite.ACE" )
Style ( NEEDLE )
ScaleRange ( 0 1600 )
ScalePos ( 319 47 )
Units ( AMPS )
Pivot ( 27 )
DirIncrease ( 0 )
)
The display is a single dial, with both needles starting at the left end; they move clockwise on the dial as the magnitude of their value increases (more motor current for the white, more dynamic braking current for the red).
These angle values are exactly what you see if you open the cab editor and look at the entry template for each of these display items.
The angle values for the white needle look straightforward - the needle moves from 319 degrees to 47 degrees as the current increases from 0 to 1600 amperes.
When dynamic braking is active, the red needle in the display moves from 319 degrees, in the the positive direction (because the DirIncrease value is 1) towards the vertical, i.e. the angle is moving towards 360 and perhaps may move past it. But in the cvf file, the entry is 250 degrees. What is the rule that MSTS uses to interpret this value?
I'm sure that the answer is staring at me, but I can't see it. Any help would be appreciated so that OR can interpret the numbers the same way.