On 5/16/2017 2:18 AM, [email protected] wrote:
> Hello Jeff,
> I have tried to add the PID loop to my setup. I copied the code from the 
> Xylotek 
> HAL and Config file. But for some reason when I feed the PID loop output into 
> the velocity command, the motors don't move at all. When i feed the PID 
> output 
> into the position command the machine starts moving but completly 
> uncontrolable.

You need to run the stepgen in velocity mode, not position mode:

http://www.machinekit.io/docs/man/man9/hal_pru_generic/

setp hpg.stepgen.00.control-type 1

-- 
Charles Steinkuehler
[email protected]

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to