feat!: changed encoder position to float

This commit is contained in:
2026-01-27 12:26:28 +03:00
parent f2d1822ab4
commit 8b946d7576
4 changed files with 53 additions and 54 deletions

View File

@@ -67,7 +67,7 @@ void app_main(void)
config.encoder_step = 0.001;
config.encoder_number = ENCODER_NUMBER;
zh_encoder_init(&config, &encoder_handle);
double encoder_position = 0;
float encoder_position = 0;
zh_encoder_get(&encoder_handle, &encoder_position);
printf("Encoder position %0.3f.\n", encoder_position);
for (;;)