Brit semaphores
British semaphore signals for BRR

Copyright 2003 Oskari Saarekas

Aspects:

Red arm (home):
Diagonal - Proceed, Horizontal - Stop

Yellow arm (distant):
Diagonal - Next home shows proceed
Horizontal - Next home shows stop

Repeater:
Horizontal bar - Signal shows stop
Diagonal bar - Signal doesn't show stop


Note! The signal image in the top-right
corner of the screen usually shows wrong
information. Only follow the instructions
given by the actual signals on the route.
#end#


#speeds#
Route.Signal(1) 210
Route.Signal(2) 210
Route.Signal(3) 210
#end#


#signaldef#
	#if<#equal<a, 2>>
		#if<#not<x, 0>>
			s3pnp#sub<x,0.6>p#add<y,0.23>pte
		#elseif<#not<y, -1>>
			s3pnp#sub<x,0.6>p#add<y,0.23>pte
		#endif<>
		s-2pnpxpypte
	#elseif<#equal<a, -2>>
		#if<#not<x, 0>>
			s3pnp#sub<x,0.6>p#add<y,0.23>pte
		#elseif<#not<y, -1>>
			s3pnp#sub<x,0.6>p#add<y,0.23>pte
		#endif<>
		s-2pnpxpypte
	#else<>
		#if<#not<x, 0>>
			#if<#equal<y, -1>>
				s5pnp#sub<x,0.6>p5.06pte
			#else<>
				s5pnp#sub<x,0.6>p#add<y,0.25>pte
			#endif<>
		#elseif<#not<y, -1>>
			s5pnp#sub<x,0.6>p#add<y,0.25>pte
		#endif<>
		s-4pnpxpypte
	#endif<>
#end#


#relaydef#
	rxpye
#end#
