WHB04B-4 Lead Switch Issue

More
5 years 3 weeks ago #222757 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
I see you patched these two functions

void Pendant::dispatchFeedEventToHandwheel(const KeyCode& feed, bool isActive)
void Pendant::dispatchActiveFeedToHal(const KeyCode& feed, bool isActive)

When I  look at the value of key.code when I turn the knob to lead, the value is always 0x00 so your || condition key.code == 0x96 is never true

I think line 337 in FeedRotaryButtonCodes::FeedRotaryButtonCodes() :

undefined(0x00, "", ""),

sets the key code to 0x00 because 0x9B is not in the table for permisable values.

Shawn



 

Please Log in or Create an account to join the conversation.

More
5 years 3 weeks ago - 5 years 3 weeks ago #222761 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
I made changes like in the following files and it seems to work for me. I renamed pendant.cc to pendant.txt as the forums do not allow .cc files for some reason.

Shawn

 

File Attachment:

File Name: pendant.txt
File Size:59.92 KB

 

File Attachment:

File Name: pendant.h
File Size:22.44 KB
Last edit: 5 years 3 weeks ago by slammers.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #285178 by bally123
Replied by bally123 on topic WHB04B-4 Lead Switch Issue
Hi Slammers

I'm facing very similar issues with my wh04b-4, I would greatly appreciate it if you can help me figure out how to compile this driver.  I want to make to various changes to the source. I'm happy enough with making the changes - its the compile process that's new to me.

Thanks Bally
 
Last edit: 2 years 11 months ago by bally123.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #285184 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
What is I just give your the compiled file? I guess that would only work if you are using the same revision of LinuxCNC that I have. Which is 2.8.

 
Last edit: 2 years 11 months ago by slammers.

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285186 by bally123
Replied by bally123 on topic WHB04B-4 Lead Switch Issue
Hi 

That would be appreciated and my working machine is on 2.8. 

But ultimately I'd really like to be developing the source code to suit my needs going forward. In addition to the lead switch I want to change other things. 

I created a topic earlier regarding all my issues and thoughts, then found this topic later on.

forum.linuxcnc.org/24-hal-components/506...ues-and-improvements

My SIM machine is on 2.9 and it's only a matter of time before I move to that so being able to compile my changes is really the ideal situation.

But in meantime yes I would glady appreciate your file.

Thanks Bally

Please Log in or Create an account to join the conversation.

More
2 years 11 months ago #285188 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
Have you read the help on compiling LinuxCNC? This should be all you need. These are the instructional I followed.

linuxcnc.org/docs/master/html/code/building-linuxcnc.html

The only real headache was the step

dpkg-checkbuilddeps

as there were tons of dependacies I had to add to my system. Both once they are all installed the build process worked fine.

Please Log in or Create an account to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum