post your gcode file, i can test it out this week. I havent tested out CSS yet, and ive been trying to figure out how it works. because with threading it runs fine, but with CSS i think it is using the spindle speed-in pin.
If spindle0.speed-in has control on the rpm signal based on the feedback it receives, that would make more sense of your issue.
You removed the lowpass filter gain from the hal file. Im not sure what it defaults to. 0.001 was the gain that worked for me without jumping around, but it took longer to stabilize at speed
Code:
setp lowpass.spindle-encoder-velocity.gain 0.001
Monitor this pin on the halshow, spindle.0.speed-in when trying to css, and see what it looks like.
Your spindle PID in the ini file arent hooked up to anything, so they wont do anything.
RE: spindle gain, sorry about that murphy, I got confused between some configs and got some decimals mixed up. The correct way is 100/maxrpm.
Also when I set the gain to 0.0025 which should be the correct value for 4000rpm. It doesn't scale right. I need to input 0.02 for it to work.
if it works, whatever, but maybe look into it. with gain at .02 that would make 4000rpm 8volts.