DE H/V / Fin
German H/V signal system, also used in Finland.

Copyright 2003 Oskari Saarekas

All home signals (upper box) have distants
(lower box) attached to them.

Aspects (home):
G - Proceed, G+Y - Limit 40km/h, R - Stop

Aspects (distant):
G+G - Next home signal shows proceed
G+Y - Next home signal shows limit 40 km/h
Y+Y - Next home signal shows stop
#end#


#speeds#
Route.Signal(1) 250
Route.Signal(2) 40
Route.Signal(3) 250
#end#


#signaldef#
	#if<#equal<a, 2>>
		s2pnpxpypte
		#if<#not<x, 0>>
			#if<#equal<y, -1>>
				rxp3.95e
			#else<>
				rxp#sub<y,0.85>e
			#endif<>
		#endif<>
	#else<>
		s-2pnpxpypte
		#if<#not<x, 0>>
			#if<#equal<y, -1>>
				rxp3.95e
			#else<>
				rxp#sub<y,0.85>e
			#endif<>
		#endif<>
	#endif<>
#end#


#relaydef#
	rxpye
#end#
