X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fdummy.cpp;h=90638f63bd8c438b2cfa845a7c0d20173992df41;hb=9f0d428e974defa64cdf8e7b7072967327250958;hp=0c3c351d968d01b23a79597aa4e725791dea5d62;hpb=b3cc0d29a0fda2d48443d66881214c81a04b1729;p=r2c2.git diff --git a/source/libr2c2/dummy.cpp b/source/libr2c2/dummy.cpp index 0c3c351..90638f6 100644 --- a/source/libr2c2/dummy.cpp +++ b/source/libr2c2/dummy.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include "dummy.h" @@ -10,6 +11,7 @@ namespace R2C2 { Dummy::Dummy(const Options &opts): power(true), + halted(false), turnout_delay(opts.get("turnout_delay", 0.0f)*Time::sec), turnout_fail_rate(opts.get("turnout_fail_rate", 0.0f)*RAND_MAX) { } @@ -117,6 +119,11 @@ bool Dummy::get_sensor(unsigned addr) const return false; } +float Dummy::get_telemetry_value(const string &name) const +{ + throw key_error(name); +} + void Dummy::tick() { Time::TimeStamp t = Time::now();