Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of locate_by_hello_enc by
Diff: locate.h
- Revision:
- 4:db36396371e0
- Parent:
- 3:56b034c41dc5
diff -r 56b034c41dc5 -r db36396371e0 locate.h
--- a/locate.h Fri Sep 02 06:50:14 2016 +0000
+++ b/locate.h Sat Sep 03 06:29:49 2016 +0000
@@ -94,7 +94,7 @@
dir2 = __HAL_TIM_IS_TIM_COUNTING_DOWN(&timer2);
r = -convert_enc_count(count1, dir1);
- l = convert_enc_count(count2, dir2);
+ l = -convert_enc_count(count2, dir2);
theta = (r - l) * ROUND - erase_theta;
v = (r - pr + l - pl);
