diff options
author | Sean M. Pappalardo <pegasus@renegadetech.com> | 2015-12-10 09:27:02 -0800 |
---|---|---|
committer | Sean M. Pappalardo <pegasus@renegadetech.com> | 2015-12-10 09:27:02 -0800 |
commit | 27855556b0090bba61c412c8cdd2f29b50f18b24 (patch) | |
tree | 14780a457c1b862e95fe5b90bc90a15d05a9a332 /src/controllers/softtakeover.h | |
parent | 6f475ec07568474ec8e6858aed27868fb7063645 (diff) |
More comments on ST tests, now uses time threshold from softtakeover.h for less hard-coding
Diffstat (limited to 'src/controllers/softtakeover.h')
-rw-r--r-- | src/controllers/softtakeover.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/controllers/softtakeover.h b/src/controllers/softtakeover.h index 73eff042b6..f432517809 100644 --- a/src/controllers/softtakeover.h +++ b/src/controllers/softtakeover.h @@ -25,6 +25,8 @@ class SoftTakeover { bool ignore(ControlObject* control, double newParameter); void ignoreNext(); void setThreshold(double threshold); + + struct TestAccess; private: // If a new value is received within this amount of time, jump to it @@ -38,6 +40,12 @@ class SoftTakeover { double m_dThreshold; }; +struct SoftTakeover::TestAccess { + static qint64 getTimeThreshold() { + return SUBSEQUENT_VALUE_OVERRIDE_TIME_MILLIS; + } +}; + class SoftTakeoverCtrl { public: SoftTakeoverCtrl(); |