Changing task frequency "on the fly" #55
Answered
by
maholli
sukjinkang
asked this question in
Q&A - Software
-
|
What would be the best way to change a task frequency on the fly? For example, if I wanted to change beaconing interval, how can I do that after the beacon_task has been loaded? I'd like to be able to change the beacon and telemetry collection rate via ground commands, if possible. |
Beta Was this translation helpful? Give feedback.
Answered by
maholli
Mar 18, 2022
Replies: 1 comment
-
|
All the scheduled task objects are accessible through the To test without over the air commands:
To test with over the air commands:
Having the flexibility to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sukjinkang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All the scheduled task objects are accessible through the
cubesat.scheduled_tasksdictionary. The task object has achange_ratefunction allowing you to change the frequency on the fly.To test without over the air commands:
self.cubesat.scheduled_tasks['beacon'].change_rate(1/10)to something like the IMU task (line 38 would work well) to update the beacon frequency from once every 30 seconds to once every 10 seconds.To test with over the air commands:
exec_cmd. Following the example here, it might look like this: