You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(hm2): drop _64 encoder pins, keep 64-bit internal
RFC #3286 narrow option 1: fix float position wrap on
high-count encoders via 64-bit internal counters, without
exposing new HAL pin types. s32 count/rawcounts/rawlatch/
count-latched remain as truncated views of the internal
64-bit counters. Float position is computed from the full
64-bit value so it does not wrap.
Avoids committing four integer pin types (s32/u32/s64/u64)
into 2.10 ABI before the getter/setter direction in #3286
is decided. The overflow fix from 8a3ac3f is preserved;
only the pin exposure is reverted. Unused
prev_event_rawcounts_64 dropped.
BREAKING CHANGE: count_64, rawcounts_64, rawlatch_64 and
count-latched_64 pins added post-2.9 are removed. HAL
surface matches 2.9.
Refs #3286#2331
Copy file name to clipboardExpand all lines: docs/src/man/man9/hostmot2.9.adoc
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,9 +322,7 @@ following pins and parameters:
322
322
*Pins:*
323
323
324
324
count (s32 out)::
325
-
Number of encoder counts since the previous reset.
326
-
count_64 (s64 out)::
327
-
Number of encoder counts since the previous reset (64 bit).
325
+
Number of encoder counts since the previous reset. 32-bit truncation of the 64-bit internal counter; position is computed from the full-width internal value so it does not wrap.
328
326
position (float out)::
329
327
Encoder position in position units (count / scale).
330
328
position-interpolated (float out)::
@@ -355,13 +353,9 @@ probe-invert (bit r/w)::
355
353
If set to True, the rising edge of the probe input pin triggers the latch event (if probe-enable is True).
356
354
If set to False, the falling edge triggers. (only present if supported by firmware)
357
355
rawcounts (s32 out)::
358
-
Total number of encoder counts since the start, not adjusted for index or reset.
359
-
rawcounts_64 (s64 out)::
360
-
Total number of encoder counts since the start, not adjusted for index or reset. (64 bit)
356
+
Total number of encoder counts since the start, not adjusted for index or reset. Truncated view of the internal 64-bit counter.
361
357
count_latch (s32 out)::
362
-
Encoder count at latch event. (index or probe)
363
-
count_latch_64 (s64 out)::
364
-
Encoder count at latch event. (index or probe) (64 bit)
358
+
Encoder count at latch event (index or probe). Truncated view of the internal 64-bit latched count.
365
359
input-a, input-b, input-index (bit out)::
366
360
Real time filtered values of A,B,Index encoder signals
0 commit comments