]> git.tdb.fi Git - r2c2.git/commit
Don't set pure_speed and accurate_position when halted
authorMikko Rasa <tdb@tdb.fi>
Sun, 6 Apr 2014 20:28:53 +0000 (23:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 6 Apr 2014 20:28:53 +0000 (23:28 +0300)
commitb51fbe499f1fd68a1abcbdee913cde1ccb580bca
tree9462002169dd0b49a4334a70f9fc69580a1e87dd
parentfe8b45dc60ed7828f0b4af9daa9b4cd0649415ca
Don't set pure_speed and accurate_position when halted

It may happen that the train has enough momentum to roll onto the next
sensor when halt occurs.  Setting accurate_position in this case is
likely to cause a sensor missed emergency when halt is lifted, as the
physical locomotive takes a moment to get up to speed again.
source/libr2c2/train.cpp