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

Controller implementation: freertos #116

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

SAT-oO
Copy link
Contributor

@SAT-oO SAT-oO commented Feb 8, 2025

No description provided.

@SAT-oO SAT-oO linked an issue Feb 8, 2025 that may be closed by this pull request
@SAT-oO SAT-oO requested a review from a team February 8, 2025 22:17
@SAT-oO SAT-oO changed the title Controller implementation Controller implementation: freertos Feb 8, 2025
@SAT-oO SAT-oO self-assigned this Feb 8, 2025
src/application/controller/controller.c Outdated Show resolved Hide resolved
src/application/controller/controller.c Outdated Show resolved Hide resolved
src/application/controller/controller.c Outdated Show resolved Hide resolved
src/application/controller/controller.c Outdated Show resolved Hide resolved
src/application/controller/controller.c Outdated Show resolved Hide resolved
src/application/controller/controller.c Show resolved Hide resolved
src/application/controller/controller.c Show resolved Hide resolved
src/application/controller/controller.c Outdated Show resolved Hide resolved
log_text("controller", "flight phase changed");
}

#if current_phase == STATE_ACT_ALLOWED || current_phase == STATE_COAST // if is proper state
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @return W_FAILURE if validation/queueing fails
*/
w_status_t controller_update_inputs(controller_input_t *new_state) {
if (xQueueOverwrite(internal_state_queue, new_state) == pdPASS) { // overwrite internal queue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xQueueOverwrite can only ever return pdPASS so this error checking is ineffective
https://www.freertos.org/Documentation/02-Kernel/04-API-references/06-Queues/11-xQueueOverwrite

src/application/controller/controller.c Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FreeRTOS portion of controller implementation
4 participants