Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

component thcud.comp #675

Closed
nkp216 opened this issue Jan 21, 2020 · 4 comments
Closed

component thcud.comp #675

nkp216 opened this issue Jan 21, 2020 · 4 comments
Assignees

Comments

@nkp216
Copy link

nkp216 commented Jan 21, 2020

pin cur_offset not connected anywhere

When I needed it, I did it like this:
................
................
if(!enable){
z_pos_out = z_pos_in;
z_fb_out = z_pos_in; // keep axis motor position fb from being confused
}
cur_offset = offset;
}

And it would be nice to make parameter "correction_vel"
a pin so that you can adjust from the outside

like thise:
pin in float correction_vel "The Velocity to move Z to correct";

@andypugh
Copy link
Collaborator

I see no reason that correction_vel could not be a pin. It won't affect any existing HAL files and sounds like it might be useful.
I don't see any reason for the offset to be an internal variable. Your solution seems like it would have the desired effect, but it would make more sense to use the pin value directly throughout.
Hopefully JT can explain if there is a good reason for the separation.

@petterreinholdtsen
Copy link
Collaborator

@jethornton Any chance you can explain the reason for the separation?

@jethornton
Copy link
Collaborator

It looks like:
pin out float cur_offset "The Current Offset";
is a left over from the copy and paste of thc.comp perhaps but I can't find any reference to it. So maybe I was adding it 10 years ago and never finished it...

JT

andypugh added a commit that referenced this issue Oct 3, 2023
@andypugh
Copy link
Collaborator

andypugh commented Oct 3, 2023

I have made the change to the offset output pin.

@andypugh andypugh closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants