Hi, little late but could this be an option for linear motor ?
https://github.com/TkkrLab/LinearMotor
Br
Micael