-
Notifications
You must be signed in to change notification settings - Fork 0
feat(radio_planner): lazy-sleep hysteresis via STDBY_XOSC fallback mode #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,6 +98,13 @@ typedef struct radio_planner_s | |
| const ralf_t* radio; | ||
| const ralf_t* radio_target_attached_to_this_hook[RP_NB_HOOKS]; | ||
| uint32_t margin_delay; | ||
| // Lazy-sleep hysteresis state (see RP_LAZY_SLEEP_DELAY_MS): radio is held | ||
| // in STDBY_XOSC after a task completes, and only put to sleep once the | ||
| // hysteresis deadline expires with no new task launched. | ||
| bool lazy_sleep_pending; | ||
| bool lazy_fallback_configured; | ||
| uint32_t lazy_sleep_deadline_ms; | ||
| const ralf_t* lazy_sleep_target; | ||
|
Comment on lines
+104
to
+107
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Track lazy holds per radio, or flush before switching targets. A completed task on radio A sets this single target, but launching a task on radio B clears 🤖 Prompt for AI Agents |
||
| } radio_planner_t; | ||
|
|
||
| /* | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Open-Source-Space-Foundation/usp
Length of output: 17466
🏁 Script executed:
Repository: Open-Source-Space-Foundation/usp
Length of output: 15328
Configure the fallback before launching the next radio task.
The fallback is configured only during
rp_radio_irq_callback, after the previous radio operation has transitioned the transceiver to standby. The next task’srp_task_launch_currentcallback can run before this idle-task path, so move the fallback setup before launching RX/TX and only mark it configured afterral_set_rx_tx_fallback_mode()succeeds.🤖 Prompt for AI Agents