-
Hello everyone, I am currently learning how to use the scheduler_lab and I have some questions. ContextI created an application that sends me a simulated temperature between 30 and 40 °C. I would like this application to be triggered automatically at a regular interval. I saw that the scheduler_lab application allowed me to do what I wanted. So I added the corresponding message_id to my application to trigger the temperature sending using the scheduler. So far everything is working fine, my application is sending the temperature at a regular interval of 1 second. I noticed that the scheduler was itself clocked compared to the cf_time application which sends "Wake-Up" packets only every second. QuestionI would like to know if it was possible to change the interval of sending the "Wake-Up" packet so that my scheduler can send a packet every 30 Hz for example ? I guess I just need to change a #define somewhere but after a long search I can't find the source of this "timer" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If you are interested in using a more full-featured scheduler that supports higher than 1Hz rates it can be found at https://github.com/nasa/sch. The "sch_lab" application is really just a trivial example, and as currently designed/implemented really is limited to 1 Hz. To make it run faster than 1 Hz you could adjust the 1Hz (aka 1PPS) time sync "pulse", but that would have other impacts since the system is designed around it's current rate/behavior. Alternatively you could modify sch_lab to have an additional higher rate timer, but that's basically what the sch app referenced above does. |
Beta Was this translation helpful? Give feedback.
-
Heads up - nasa/sch_lab#104 updates sch_lab to be able to run at faster than 1Hz. |
Beta Was this translation helpful? Give feedback.
If you are interested in using a more full-featured scheduler that supports higher than 1Hz rates it can be found at https://github.com/nasa/sch. The "sch_lab" application is really just a trivial example, and as currently designed/implemented really is limited to 1 Hz. To make it run faster than 1 Hz you could adjust the 1Hz (aka 1PPS) time sync "pulse", but that would have other impacts since the system is designed around it's current rate/behavior. Alternatively you could modify sch_lab to have an additional higher rate timer, but that's basically what the sch app referenced above does.