Skip to content
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

Feature op modes #354

Merged
merged 38 commits into from
Aug 19, 2024
Merged

Feature op modes #354

merged 38 commits into from
Aug 19, 2024

Conversation

c-porto
Copy link
Member

@c-porto c-porto commented Aug 17, 2024

Changes, added features and fixes:

  • Add Operation Control task
  • Update telecommands on process_tc task
  • Refactor payload tasks, devices and drivers
  • Add a state struct to manage payloads through operation modes
  • Fix obdh data saving on housekeeping task
  • Fix antenna deployment hibernation check

c-porto added 30 commits August 5, 2024 02:29
…ask notifications

The rationale for the change is based on the excessive amount of
locks/unlocks required to manage the satellite state using only the
sat_data_buf instance. Also, the change reduces wasting computing
resources, because tasks now block on xTaskNotifyWait calls instead of
wasting time on if statements, checking if they are allowed to run.
Because the system time is controlled outside the housekeeping task, the
only way that the call (system_get_time() % 60U) returns 0 is if the
housekeeping task executes exactly after the time_control task when it
update the system time to a "multiple of a minute". Therefore, the
housekeeping task definitely did not save the data to fram every minute.
Now, with the changes, it does actually saves it in the expected time.
@c-porto c-porto added tasks System tasks edc EDC payload payload Payload payload_x Payload X edc_task EDC task process_tc Process TC task deployment Antenna deployment labels Aug 17, 2024
@c-porto c-porto requested a review from mgm8 August 17, 2024 16:49
@c-porto c-porto self-assigned this Aug 17, 2024
@c-porto c-porto merged commit c15ace9 into dev_firmware Aug 19, 2024
21 checks passed
@c-porto c-porto deleted the feature_op_modes branch August 19, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Antenna deployment edc_task EDC task edc EDC payload payload_x Payload X payload Payload process_tc Process TC task tasks System tasks
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants