halui analog jog (ref interfacing a shuttleXpress)
28 Apr 2013 21:24 #33332
by m8298
Replied by m8298 on topic Re:halui analog jog (ref interfacing a shuttleXpress)
So, when the shuttlexpress.c was written, how were the number of packets it uses determined? And how are the bit mask names determined?
Please Log in or Create an account to join the conversation.
28 Apr 2013 21:43 #33334
by andypugh
I expect that Seb put in HAL pins that reported the raw values, and stared intently at the numbers while operating the device.
I am working on generalising the driver, but not very rapidly.
As I said, just try changing the product ID and see if you end up with something that nearly works, but with only 4 buttons active.
Replied by andypugh on topic Re:halui analog jog (ref interfacing a shuttleXpress)
So, when the shuttlexpress.c was written, how were the number of packets it uses determined? And how are the bit mask names determined?
I expect that Seb put in HAL pins that reported the raw values, and stared intently at the numbers while operating the device.
I am working on generalising the driver, but not very rapidly.
As I said, just try changing the product ID and see if you end up with something that nearly works, but with only 4 buttons active.
Please Log in or Create an account to join the conversation.
29 Apr 2013 01:58 #33347
by m8298
Andy, I tried this and at the point I get to the ./auto gen.sh, it says no such file or directory?
Replied by m8298 on topic Re:halui analog jog (ref interfacing a shuttleXpress)
sudo apt-get install git-core build-essential linuxcnc-dev
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev
{Edit src/hal/user_comps/shutlexpress.c}
./autogen.sh
./configure --prefix /usr
make
sudo make setuid
Andy, I tried this and at the point I get to the ./auto gen.sh, it says no such file or directory?
Please Log in or Create an account to join the conversation.
29 Apr 2013 04:25 #33352
by andypugh
Replied by andypugh on topic Re:halui analog jog (ref interfacing a shuttleXpress)
Ah, sorry, you need to be in the src directory.Andy, I tried this and at the point I get to the ./auto gen.sh, it says no such file or directory?
Please Log in or Create an account to join the conversation.
30 Apr 2013 05:53 #33412
by m8298
Replied by m8298 on topic Re:halui analog jog (ref interfacing a shuttleXpress)
OK, now I get hung up at make.
It says: Makefile:55: Make file.inc no such file or directory. Makefile:66: *** Make file.inc must specify RTPREFIX and other variables. Stop.
It says: Makefile:55: Make file.inc no such file or directory. Makefile:66: *** Make file.inc must specify RTPREFIX and other variables. Stop.
Please Log in or Create an account to join the conversation.
30 Apr 2013 06:19 #33414
by andypugh
Did you ./configure?
Replied by andypugh on topic Re:halui analog jog (ref interfacing a shuttleXpress)
OK, now I get hung up at make.
It says: Makefile:55: Make file.inc no such file or directory. Makefile:66: *** Make file.inc must specify RTPREFIX and other variables. Stop.
Did you ./configure?
Please Log in or Create an account to join the conversation.
30 Apr 2013 06:25 #33415
by m8298
Replied by m8298 on topic Re:halui analog jog (ref interfacing a shuttleXpress)
Yes.
Could you give me the instructions again referencing there proper directory structure? I am not certain I was in the proper directory.
Could you give me the instructions again referencing there proper directory structure? I am not certain I was in the proper directory.
Please Log in or Create an account to join the conversation.
30 Apr 2013 06:29 - 30 Apr 2013 06:30 #33417
by andypugh
You need to be on linuxcnc-dev/src
(Assuming you have put the git repository in linuxcnc-dev)
Then for testing.
./autogen.sh
./configure
make
sudo make setuid
That will create a run-in-place config, or it should tell you why it hasn't.
To use the run-in-place version you just compiled you need to move down a level to the linuxcnc-dev directory, then
. ./scripts/rip-environment
(Yes, that is dot space dot slash)
Then start linuxcnc or halrun from the same command prompt as you just ran the rip-environment script.
Replied by andypugh on topic Re:halui analog jog (ref interfacing a shuttleXpress)
Yes.
Could you give me the instructions again referencing there proper directory structure? I am not certain I was in the proper directory.
You need to be on linuxcnc-dev/src
(Assuming you have put the git repository in linuxcnc-dev)
Then for testing.
./autogen.sh
./configure
make
sudo make setuid
That will create a run-in-place config, or it should tell you why it hasn't.
To use the run-in-place version you just compiled you need to move down a level to the linuxcnc-dev directory, then
. ./scripts/rip-environment
(Yes, that is dot space dot slash)
Then start linuxcnc or halrun from the same command prompt as you just ran the rip-environment script.
Last edit: 30 Apr 2013 06:30 by andypugh.
The following user(s) said Thank You: Marcus
Please Log in or Create an account to join the conversation.
Time to create page: 0.707 seconds