h-move

h-move motion library

h-move is our free, MIT-licensed C99 library for jerk-limited motion. It plans a smooth single-axis move that stays within your velocity, acceleration, and jerk limits, ready to sample from your own control loop.

It needs no heap, operating system, or hardware abstraction, so it fits embedded firmware and C++ projects alike.

It is fast on embedded hardware: across 10 million fuzz-tested trajectory plans on a 360 MHz ESP32-P4, the slowest took 3.969 ms.

Sample Trajectory

0255075100Position (mm)00.511.52Time (s)
h_move_plan_position({
  .target = {
    .position = 100.0F,
    .velocity = 0.0F,
    .acceleration = 0.0F},
  ...})
h_move_plan_position({
  .target = {
    .position = 50.0F,
    .velocity = -150.0F,
    .acceleration = 0.0F},
  ...})
h_move_plan_position({
  .target = {
    .position = 10.0F,
    .velocity = 0.0F,
    .acceleration = 0.0F},
  ...})
h_move_plan_position({
  .target = {
    .position = 70.0F,
    .velocity = 0.0F,
    .acceleration = 0.0F},
  ...})
About Us
By using this website, you agree to our Terms and Conditions and Privacy Policy