Csantucci, on 10 February 2022 - 01:21 AM, said:
@jtr1962: Please insert following zipped patch into ORNYMG 117. This should solve your problem 3) once you add into your CruiseControl block the line
KeepSelectedSpeedWhenManualModeSet ( True )
IF your test is OK, this will be added in next ORNYMG revision.
Please note that boolean parameters in the CruiseControl block are false as default, except DynamicBrakeCommandHasPriorityOverCruiseControl. So, if you want, you can remove all lines where its parameter is set to false.
Thank you, the patch works great!
I took your suggestion and removed all false parameters from the cruise control block:
ORTSCruiseControl (
SpeedIsMPH ( True )
MaxForceSteps ( 100 )
DefaultForceStep ( 0 )
NominalSpeedStep ( 1 ) comment (** when pressing Shift+A or Shift+D how many speed units should the selected speed change **)
SpeedSelectorStepTimeSeconds ( 0.3 ) comment (** how fast the selected speed lever adds speed, 0.3 is one step in 0.3 seconds **)
DynamicBrakeMaxForceAtSelectorStep ( 50 ) comment (** the brake will reach 100% at this step, the lower step the max brake percent will be also lower **)
StartReducingSpeedDelta ( 0.5 ) (** the lower number, the sooner the regulator will decrease power **)
StartReducingSpeedDeltaDownwards ( 2.5 )
MaxForceKeepSelectedStepWhenManualModeSet ( True )
KeepSelectedSpeedWhenManualModeSet ( True )
ForceResetIncludeDynamicBrake ( True )
ThrottleFullRangeIncreaseTimeSeconds ( 4 ) comment (** time in seconds needed for the regulator to reach 0-100% of power **)
ThrottleFullRangeDecreaseTimeSeconds ( 4 ) comment (** time in seconds needed for the regulator to reach 100-0% of power **)
comment ( set DynamicBrakeFullRangeIncreaseTimeSeconds to very high value if dynamic brake isn't used by cruise control )
DynamicBrakeFullRangeIncreaseTimeSeconds ( 200000 ) comment ( ** same as above, but for dynamic braking ** )
DynamicBrakeFullRangeDecreaseTimeSeconds ( 2 ) comment ( ** same as above, but for dynamic braking ** )
DynamicBrakeCommandHasPriorityOverCruiseControl ( True )
DoComputeNumberOfAxles ( True )
MinimumSpeedForCCEffect ( 8.94 )
ControllerCruiseControlLogic ( None )
UseThrottleInCombinedControl ( True )
UseThrottleAsForceSelector ( True )
HasProportionalSpeedSelector ( True )
SpeedSelectorIsDiscrete ( True )
Options ( "RegulatorManual, RegulatorAuto, SelectorOn, StartFromZero, EngageForceOnNonZeroSpeed" )
)
I also changed a few things to match how the real AEM-7 cruise control works. It doesn't use the train brake. I had those lines before pertaining to the train brake just to test out the feature. The AEM-7 cruise control also doesn't use the dynamic brake. If you set the speed lower it will just coast down to the new speed. Since there is no parameter to disable the use of the dynamic brake I simply set the
DynamicBrakeFullRangeIncreaseTimeSeconds parameter to a very high value. Even letting the train coast down from 125 mph to 0 mph the dynamic brake stayed at 0%.
One minor function of the real cruise control which I can't duplicate is that it can't reduce the motor current to zero. In the
operator's manual it mentions the following on page 91:
On descending grades, traction motor current may be reduced to 100 amperes minimum and locomotive speed can exceed the "set speed". The speed cruise control selector system does not completely cut out propulsion power or apply brakes. Therefore, it may be necessary to set the throttle to 0 position and apply brakes as necessary to prevent excessive speed.
If other locomotives also have similar behavoir it might be worthwhile to add a parameter which specifies the minimum throttle percentage when the cruise control is regulating speed. However, if this feature can't easily be implemented it's not terribly important.