feat!: changed encoder position to float
This commit is contained in:
1 parent
f2d1822ab4
commit
8b946d7576
4 files changed
+53
-54
No files matched your search
@@ -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 (;;)
|
||||
|
||||
Reference in new issue
Block a user