X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Farducontrol.h;h=8d27a2f572d74e561acdbc0266dc20561a777f8c;hb=fe8b45dc60ed7828f0b4af9daa9b4cd0649415ca;hp=01ee2814c6f2bff1f3e52ad11b67070a97e85900;hpb=22f5774d4f27bef8741c884844d991d9e1da273f;p=r2c2.git diff --git a/source/libr2c2/arducontrol.h b/source/libr2c2/arducontrol.h index 01ee281..8d27a2f 100644 --- a/source/libr2c2/arducontrol.h +++ b/source/libr2c2/arducontrol.h @@ -357,8 +357,9 @@ private: virtual void main(); void init_baud_rate(); bool get_work(PendingCommand &); - unsigned do_command(const PendingCommand &); + unsigned do_command(const PendingCommand &, const Msp::Time::TimeDelta &); unsigned process_reply(const char *, unsigned); + void set_power(bool); }; typedef std::map LocomotiveMap; @@ -384,6 +385,7 @@ private: SensorMap sensors; + Msp::Time::TimeDelta command_timeout; Queue command_queue; Queue completed_commands; RefreshTask refresh;