X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.h;fp=source%2Flibr2c2%2Ftrain.h;h=c0eb52e850006cd4ca48f41f1ad35dd77da227f3;hb=9f4f169affcedcf249e935f93e0a15ed60232f6a;hp=e3eebe1fc5d050d2d3b2a230eaa332416c909a1f;hpb=d2dfed1a38c5e8487532e9055fad464cf54efd83;p=r2c2.git diff --git a/source/libr2c2/train.h b/source/libr2c2/train.h index e3eebe1..c0eb52e 100644 --- a/source/libr2c2/train.h +++ b/source/libr2c2/train.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include #include "blockallocator.h" #include "controller.h" #include "sensor.h" @@ -60,11 +60,11 @@ private: unsigned current_speed_step; bool speed_changing; bool reverse; - Msp::Time::TimeStamp stop_timeout; + Msp::Time::TimeDelta stop_timeout; unsigned functions; BlockIter last_entry_block; - Msp::Time::TimeStamp last_entry_time; + Msp::Time::TimeDelta travel_time; bool pure_speed; SpeedQuantizer *speed_quantizer; bool accurate_position; @@ -123,7 +123,7 @@ public: const BlockAllocator &get_block_allocator() const { return allocator; } float get_reserved_distance() const; - void tick(const Msp::Time::TimeStamp &, const Msp::Time::TimeDelta &); + void tick(const Msp::Time::TimeDelta &); void save(std::list &) const; private: