User Tools

Site Tools


eeros_architecture:control_system:executor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
eeros_architecture:control_system:executor [2021/02/10 11:53] – [Add More Timedomains] ursgrafeeros_architecture:control_system:executor [2021/02/10 11:58] ursgraf
Line 45: Line 45:
  
 ===== Add More Time Domains ====== ===== Add More Time Domains ======
-The picture at the top of this page shows another two time domains. +The picture at the top of this page shows another two time domains. Time domain 2 runs after time domain 1. It can be created and added to time domain 1 as follows 
 +<code cpp> 
 +  eeros::control::TimeDomain td1("td1", 0.001, true); 
 +  eeros::task::Periodic per1("per1", 0.001, td1); 
 +  eeros::control::TimeDomain td2("td2", 0.001, true); 
 +  eeros::task::Periodic per2("per2", 0.001, td2); 
 +  per1.after.push_back(per2); 
 +  executor.add(per1);  
 +</code>
  
eeros_architecture/control_system/executor.txt · Last modified: 2021/02/10 15:28 by ursgraf