Skip to content

led rgb solution #95

Open
SamDan13 wants to merge 54 commits into
developfrom
feature/led_rgb_new_debug_code
Open

led rgb solution #95
SamDan13 wants to merge 54 commits into
developfrom
feature/led_rgb_new_debug_code

Conversation

@SamDan13

Copy link
Copy Markdown

No description provided.

SamDan13 and others added 30 commits January 17, 2023 16:59
@SamDan13

Copy link
Copy Markdown
Author

Vídeo do teste do código no LED:
https://user-images.githubusercontent.com/62140716/226185493-d2d8187c-1114-47dc-8066-1e890de47445.mp4

Nesse teste o LED começa antes de entrar em RTD (Piscando Verde - 200ms) em seguida depois de entrar em RTD já da um Soft Error (Pisca Amarelo e Verde - 200ms), depois ainda em RTD responde a um Hard Error (Pisca Vermelho, Azul e Roxo - 1000ms). Sai de RTD por conta do Hard Error e entra em RTD (Verde Fixo).

@FelTell FelTell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Não vou comentar em todo caso, mas esse código (tanto o antigo, quanto o que vc mexeu) tá cheio de comentários e códigos em português. Traduzir tudo pra inglês.

Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Inc/util/global_definitions.h Outdated
Comment thread Core/Src/util/initializers.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c
Comment thread Core/Src/leds/rgb_led_handler.c
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

Comment thread Core/Src/leds/rgb_led_handler.c
Comment thread Core/Src/leds/debug_leds_handler.c Outdated
Comment thread Core/Inc/util/global_definitions.h Outdated
Comment thread Core/Src/driver_settings/RTD.c Outdated
Comment thread Core/Inc/leds/rgb_led_handler.h Outdated
Comment thread Core/Src/driver_settings/RTD.c Outdated
Comment thread Core/Src/leds/rgb_led_handler.c Outdated
Comment thread Core/Src/util/main_task.c Outdated
Comment thread Core/Src/util/main_task.c
Comment thread Core/Src/util/main_task.c
Comment thread Core/Src/leds/rgb_led_handler.c

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

Comment thread Core/Inc/leds/rgb_led_handler.h Outdated
Comment thread Core/Src/driver_settings/RTD.c
Comment thread Core/Src/driver_settings/RTD.c Outdated
@FelTell

FelTell commented May 31, 2023

Copy link
Copy Markdown
Contributor

No arquivo clang-format-check.yml muda a clang-format-version: '15' para 16. Ele deve até pedir pra formatar outro arquivo, acho que foi o global-definitions.h. O vscode deve ter atualizado a versão do clang-format.
Da merge com a develop tbm por favor

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ clang-tidy found issue(s) with the introduced code (1/1)

message.pattern[0] = pattern[0];
message.pattern[1] = size_of_pattern > 1 ? pattern[1] : 0;
message.pattern[2] = size_of_pattern > 2 ? pattern[2] : 0;
return osMessageQueuePutOverwrite(q_rgb_led_messageHandle, &message, 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ clang-diagnostic-implicit-function-declaration ⚠️
implicit declaration of function osMessageQueuePutOverwrite is invalid in C99

Comment thread Core/Src/util/main_task.c
Comment on lines +72 to +74
} else {
return *oldValue;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ llvm-else-after-return ⚠️
do not use else after return

Suggested change
} else {
return *oldValue;
}
} return *oldValue;

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.

3 participants