提高上报刷新率

This commit is contained in:
shen 2026-02-26 09:48:55 +08:00
parent c498259444
commit 996b791072
4 changed files with 19 additions and 19 deletions

View File

@ -139,9 +139,9 @@ int main(void)
case 0:
HAL_GPIO_WritePin(LED_R_GPIO_Port, LED_R_Pin, GPIO_PIN_SET);
angle = AS5600_GetAngle();
// _dbg_printf("Angle: %d\r\n", angle);
_dbg_printf("Angle: %d\r\n", angle);
HAL_GPIO_TogglePin(LED_G_GPIO_Port, LED_G_Pin);
HAL_Delay(100);
// HAL_Delay(100);
status = 1;
break;
case 1:

File diff suppressed because one or more lines are too long

View File

@ -103,7 +103,7 @@
<bEvRecOn>1</bEvRecOn>
<bSchkAxf>0</bSchkAxf>
<bTchkAxf>0</bTchkAxf>
<nTsel>3</nTsel>
<nTsel>6</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
@ -114,7 +114,7 @@
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<pMon>BIN\CMSIS_AGDI.dll</pMon>
<pMon>STLink\ST-LINKIII-KEIL_SWO.dll</pMon>
</DebugOpt>
<TargetDriverDllRegistry>
<SetRegEntry>

View File

@ -17,7 +17,7 @@ void _dbg_printf(const char *format, ...)
length = vsnprintf((char *)_dbg_TXBuff, sizeof(_dbg_TXBuff), (char *)format, args);
va_end(args);
// HAL_UART_Transmit_DMA(&huart3, (uint8_t *)_dbg_TXBuff, length);
// HAL_UART_Transmit_DMA(&huart1, (uint8_t *)_dbg_TXBuff, length);
HAL_UART_Transmit(&huart1, (uint8_t *)_dbg_TXBuff, length, 1000);
}