as5600 --> mt6701

This commit is contained in:
2025-11-10 18:22:44 +08:00
parent ae9f390667
commit cd01dcf51e
3 changed files with 60 additions and 2 deletions

View File

@@ -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);
}
}