before changing to soft iic

This commit is contained in:
2025-11-17 15:48:49 +08:00
parent 6de9d53e1c
commit 47e90abcb1
5 changed files with 3608 additions and 8 deletions

View File

@@ -54,13 +54,13 @@ volatile float Target = 0; //串口目标值
const int pp = 7; //电机极对数
const int Dir = 1; //电机编码器方向
const int Dir = -1; //电机编码器方向
#define UART_PACKET_SIZE (4)
#define UART_PACKET_SIZE (6)
/* Data received from UART */
volatile uint8_t gUartRxPacket[UART_PACKET_SIZE] ={'a','b','c','d'};
volatile uint8_t gUartRxPacket[UART_PACKET_SIZE] ={'a','b','c','d','e','f'};
volatile bool gCheckUART;
@@ -135,7 +135,7 @@ int main(void)
parse_uart_cmd();
Set_Angle(Target);
}
//delay_ms(10);
delay_ms(10);
}