Данные с лидара читаются

This commit is contained in:
2026-02-27 12:18:24 +03:00
parent bbd0bd2004
commit 484dcf5843
2 changed files with 5 additions and 5 deletions

View File

@@ -59,10 +59,8 @@ void lidar_init()
NVIC_EnableIRQ(USART3_IRQn);
}
uint32_t test;
void USART3_IRQHandler()
{
++test;
if (USART3->ISR & USART_ISR_RXNE)
{
uint8_t b = USART3->RDR;

View File

@@ -38,10 +38,12 @@ int main(void)
motors_init();*/
//lidar_init();
lidar_init();
lidar_i2c2_init();
tf02_force_uart();
while (1)
{
lidar_update(&lidar);
}
/*while (1)
{