-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…try/cansw_processor_canards into controller-implementation
log_text("controller", "flight phase changed"); | ||
} | ||
|
||
#if current_phase == STATE_ACT_ALLOWED || current_phase == STATE_COAST // if is proper state |
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.
Please read https://gcc.gnu.org/onlinedocs/cpp/Conditionals.html in detail
* @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 |
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.
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
No description provided.