as5600 --> mt6701
This commit is contained in:
6
empty.c
6
empty.c
@@ -42,16 +42,18 @@ extern float angle_f;
|
||||
|
||||
const float num_f = 0.123456f;
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
SYSCFG_DL_init();
|
||||
NVIC_EnableIRQ(UART_0_INST_INT_IRQN);
|
||||
while (1) {
|
||||
DL_GPIO_togglePins(LED_PORT,LED_PA0_PIN);
|
||||
MT6701_get_angle_degree();
|
||||
//MT6701_get_angle_degree();
|
||||
delay_ms(20);
|
||||
volatile float angle_rad = GetAngle();
|
||||
//printf("test \n");
|
||||
printf("angle %.5f \n" , angle_f);
|
||||
printf("angle %.5f \n" , angle_rad);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user