before changing to soft iic
This commit is contained in:
8
empty.c
8
empty.c
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user