]> git.tdb.fi Git - r2c2.git/commit
Create a more generic version of Train::get_reserved_distance
authorMikko Rasa <tdb@tdb.fi>
Mon, 4 Oct 2010 19:59:30 +0000 (19:59 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 4 Oct 2010 19:59:30 +0000 (19:59 +0000)
commitcc0ee0a5e71590960bc8cb7baee7a10ef09ce3f0
treec828e2531a6197baa545721a5173393b1e321e10
parent98047057e4adae31aa449161ca845db1a6c2db77
Create a more generic version of Train::get_reserved_distance
Use it to determine if a trailing non-sensor block can be freed
Don't release blocks if there's not enough distance for stopping
Reserve enough blocks to maintain speed
source/libmarklin/train.cpp
source/libmarklin/train.h