GEARCHANGE(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– GEARCHANGE πŸ’–

okay bestie, gather round, because we're talking about gearchange β€” a HAL component that lets you select from one two speed ranges ✨ (yes, two ranges, that's the whole vibe). It's giving ✨gear selector✨, and honestly? iconic.


✨ SYNOPSIS ✨

The way this works is: the output is a value scaled for the selected gear, and then clamped to the min/max values for that gear. No cap.

The scale of gear 1 is assumed to be 1, so you gotta choose the scale of your output device accordingly, fr fr.

The scale of gear 2 is relative to gear 1. So like, if gear 2 runs the spindle 2.5 times as fast as gear 1, then scale2 should be set to 2.5. math queen behavior πŸ’…


🌸 FUNCTIONS 🌸

  • gearchange.N β€” requires a floating-point thread 🧡

πŸ¦‹ PINS πŸ¦‹

  • gearchange.N.sel bit in β€” the gear selection input πŸ‘‘ (pick your fighter)
  • gearchange.N.speed-in float in β€” speed command input, come thru πŸŽ€
  • gearchange.N.speed-out float out β€” the speed command headed to your DAC/PWM 🌈
  • gearchange.N.dir-in bit in β€” direction command input ⭐
  • gearchange.N.dir-out bit out β€” direction output β€” which may or may not be inverted for second gear, iykyk πŸ™ˆ

πŸ’… PARAMETERS πŸ’…

  • gearchange.N.min1 float rw (default: 0) β€” minimum allowed speed in gear range 1 πŸ“
  • gearchange.N.max1 float rw (default: 100000) β€” maximum allowed speed in gear range 1 πŸ“
  • gearchange.N.min2 float rw (default: 0) β€” minimum allowed speed in gear range 2 πŸ’œ
  • gearchange.N.max2 float rw (default: 100000) β€” maximum allowed speed in gear range 2 πŸ’œ
  • gearchange.N.scale2 float rw (default: 1.0) β€” relative scale of gear 2 vs. gear 1. Since it's assumed that gear 2 is "high gear", scale2 must be greater than 1, and it will be reset to 1 if set lower 🫢
  • gearchange.N.reverse bit rw (default: 0) β€” set to 1 to reverse the spindle in second gear πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Stephen Wille Padnos πŸ’– (the moment, the icon, the legend)


πŸ“œ LICENSE πŸ“œ

GPL β€” periodt.


lowkey a whole serve, highkey a HAL component. go forth and gear-change, bestie πŸŒΈπŸ¦‹πŸ’…

that's the whole page, no notes. brought to you by the LinuxCNC Documentation girlies, dated 2026-03-17 β€” see u in the next manpage, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from