What is the idiomatic way in cfs for scheduling child tasks in an app? (Is it OS_TaskDelay?) #817
-
Looking at the current tasking example here: Something like "I want to read this data 5x a second"? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Generally you'll use the scheduler (SCH) to wake up tasks at your desired rate, and have your task block on the software bus receive message call |
Beta Was this translation helpful? Give feedback.
-
You can also use a timer directly to run a loop at whatever frequency you want. As an example, see https://github.com/nasa/sch_lab for setting up a timer that calls SCH_LAB_LocalTimerCallback, giving a semaphore to run the processing loop. |
Beta Was this translation helpful? Give feedback.
Not directly as far as I know, but you can see examples of: