Skip to content

added soft reqs for accepting usb packets to contract actuators#1

Draft
mccombeerin wants to merge 8 commits into
mainfrom
new_soft
Draft

added soft reqs for accepting usb packets to contract actuators#1
mccombeerin wants to merge 8 commits into
mainfrom
new_soft

Conversation

@mccombeerin

Copy link
Copy Markdown

No description provided.

@codeflight1 codeflight1 marked this pull request as draft July 3, 2026 02:24
Comment thread Core/Src/main.c
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
uint32_t current_time = HAL_GetTick();

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.

This whole block of code should be after the declaration of the while loop but before the USER CODE END WHILE comment. The USER CODE END 3 comment also needs to be added back after the while loop.

Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};

/** Initializes the RCC Oscillators according to the specified parameters

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.

Please don't remove autogenerated comments

Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c Outdated
Comment thread Core/Src/main.c

@codeflight1 codeflight1 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.

Getting close, left a comment on the CO2 reading and there are a couple others left over that should be resolved before merge.

Comment thread Core/Src/main.c
Comment thread Core/Src/main.c
uint16_t co2_ppm = 0;

// Read the active 16-byte frame from USART3
if (HAL_UART_Receive(&huart3, rx_buf, 16, 1000) == HAL_OK)

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.

This will block since it is being called at 10hz, please call less often or move to the UART receive interrupt

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