Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Implement angleDelta accumulation #7

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

0xFEEDC0DE64
Copy link
Member

No description provided.

@0xFEEDC0DE64 0xFEEDC0DE64 added the enhancement New feature or request label May 26, 2020
@0xFEEDC0DE64 0xFEEDC0DE64 self-assigned this May 26, 2020
if (main_loop_counter % 50 == 0) { // Send data periodically
if(UART_DMA_CHANNEL->CNDTR == 0) {
feedback.start = Feedback::VALID_HEADER;
if(UART_DMA_CHANNEL->CNDTR == 0)
Copy link
Member

Choose a reason for hiding this comment

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

Consider converting this to a guard style if:

Suggested change
if(UART_DMA_CHANNEL->CNDTR == 0)
if (UART_DMA_CHANNEL->CNDTR == 0)
return;

@@ -215,7 +215,7 @@ int main()
HAL_UART_Receive_DMA(&huart2, (uint8_t *)&command, sizeof(command));

for (;;) {
HAL_Delay(DELAY_IN_MAIN_LOOP); //delay in ms
HAL_Delay(1); //delay in ms
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason why this exact value was chosen (and the define removed)? Consider adding a comment here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants