Hello everyone,
I have one news from my colleague Jindrich, the stepping speedometer. Some time ago, there was a demand to create this type of needle movement, because it is used really widely in European locomotives.
This is a simple patch prepared by me. The step delay and accuracy are then simply set in the cvf files for the DIAL function.
Watch the video and write if you would be interested in implementing it in the official and MG version of OR.
https://www.youtube....h?v=lXuVB939FO8
Stepping speedmeter mode Another step towards reality
#2
Posted 24 August 2020 - 11:27 PM
Hi Jirka,
yes, you can send to me the patch.
Proposing new features is not so complicated. There is no obstacle to you if you generate a Pull Request to the official Git repository of OR. Blueprints and/or Trello boxes may come later, and I'm not so sure that they are still needed.
Regards
Carlo
yes, you can send to me the patch.
Proposing new features is not so complicated. There is no obstacle to you if you generate a Pull Request to the official Git repository of OR. Blueprints and/or Trello boxes may come later, and I'm not so sure that they are still needed.
Regards
Carlo
#3
Posted 25 August 2020 - 04:28 AM
Csantucci, on 24 August 2020 - 11:27 PM, said:
Blueprints and/or Trello boxes may come later, and I'm not so sure that they are still needed.
For a PR to be approved for inclusion in the Testing version (i.e. master branch or repository), there should be a link to one of:
- a blueprint or a bug report on Launchpad.net
- a Trello card
The link should specify what the change will achieve and may refer to a forum discussion.
Please do not approve a PR that doesn't have such a link.
#4
Posted 25 August 2020 - 06:03 AM
Ok, here's the patch.
You can use it in an analog speedometer:
Dial (
Type ( SPEEDOMETER DIAL )
Position ( 87 200 5 36 )
Graphic ( "..//..//common.cab//cab742_OR//742115_rychlomer.ace" )
Style ( NEEDLE )
ScaleRange ( 0 172 )
ScalePos ( 244 160 )
Units ( KM_PER_HOUR )
Pivot ( 26 )
DirIncrease ( 0 )
UpdateTime ( 1.0 )
Precision ( 1 )
)
Or also for using a digital speedometer:
Digital (
Type ( SPEEDOMETER DIGITAL )
ORTSfont ( 8 1 "Dot-Matrix" )
Position ( 87 220 32 32 )
ScaleRange ( 0 190 )
Accuracy ( 0 )
AccuracySwitch ( 0 )
LeadingZeros ( 0 )
Justification ( 3 )
PositiveColour ( 1
ControlColour ( 152 218 3 )
)
NegativeColour ( 0 )
DecreaseColour ( 0 )
Units ( KM_PER_HOUR )
UpdateTime ( 1.0 )
Precision ( 1 )
)
UpdateTime ( x ) - expresses the step delay time in seconds
Precision ( y ) - set to 1 (for future use of other functions)
You can use it in an analog speedometer:
Dial (
Type ( SPEEDOMETER DIAL )
Position ( 87 200 5 36 )
Graphic ( "..//..//common.cab//cab742_OR//742115_rychlomer.ace" )
Style ( NEEDLE )
ScaleRange ( 0 172 )
ScalePos ( 244 160 )
Units ( KM_PER_HOUR )
Pivot ( 26 )
DirIncrease ( 0 )
UpdateTime ( 1.0 )
Precision ( 1 )
)
Or also for using a digital speedometer:
Digital (
Type ( SPEEDOMETER DIGITAL )
ORTSfont ( 8 1 "Dot-Matrix" )
Position ( 87 220 32 32 )
ScaleRange ( 0 190 )
Accuracy ( 0 )
AccuracySwitch ( 0 )
LeadingZeros ( 0 )
Justification ( 3 )
PositiveColour ( 1
ControlColour ( 152 218 3 )
)
NegativeColour ( 0 )
DecreaseColour ( 0 )
Units ( KM_PER_HOUR )
UpdateTime ( 1.0 )
Precision ( 1 )
)
UpdateTime ( x ) - expresses the step delay time in seconds
Precision ( y ) - set to 1 (for future use of other functions)
#5
Posted 25 August 2020 - 02:39 PM
Thank you for that!!!
Also, what graphic effect do you use? it's really wonderful..!! :-D
Also, what graphic effect do you use? it's really wonderful..!! :-D
#6
Posted 25 August 2020 - 11:20 PM
I am examining the patch.
Are there real cases where also digital speedometers work this way? I'm asking this because I'd prefer not to add to all controls the new variables, but to add them only to controls which may have this feature, so I'd add them (in reality only the parametric ones, the other two shouldn't belong to CabViewFile.cs) only to the Dial controls. If instead this occurs also in the Digital controls I'd add such variables also there.
Are there real cases where also digital speedometers work this way? I'm asking this because I'd prefer not to add to all controls the new variables, but to add them only to controls which may have this feature, so I'd add them (in reality only the parametric ones, the other two shouldn't belong to CabViewFile.cs) only to the Dial controls. If instead this occurs also in the Digital controls I'd add such variables also there.
#7
Posted 26 August 2020 - 05:46 AM
Carlo, I hung it there for a digital speedometer just as an option. In fact, it doesn't have to be there. I don't know of a case where you can really use it. But that doesn't mean it doesn't exist.
#9
Posted 29 August 2020 - 02:00 AM
Do You mean "jumping between digits" type of needle's movement instead of incremental?
I have seen this type at electronic LED taubleaus, but not at mechanical speed-meters.
Or You mean the way, when the speed statement is being updated every N seconds?
I have seen this type at electronic LED taubleaus, but not at mechanical speed-meters.
Or You mean the way, when the speed statement is being updated every N seconds?
#10
Posted 29 August 2020 - 02:26 AM
It's not about jumping, but about refreshing values every Nth second.