Implemented and fixed many issues
This commit is contained in:
1 parent
14d5351a81
commit
e03c60db25
52 files changed
+7726
-769
No files matched your search
@@ -458,6 +458,12 @@ bool ParseTriggerState(const std::string& json, TriggerStateMsg& out) {
|
||||
double tt = 0.0;
|
||||
out.hasTrigTime = jsonGetDouble(json.c_str(), "trigTime", tt);
|
||||
out.trigTime = tt;
|
||||
|
||||
double pre = 0.0, post = 0.0;
|
||||
out.hasWindow = jsonGetDouble(json.c_str(), "preSec", pre) &&
|
||||
jsonGetDouble(json.c_str(), "postSec", post);
|
||||
out.preSec = pre;
|
||||
out.postSec = post;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user