Joypad Joint and Cartesian Mode Jogging
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 200
- Thank you received: 10
27 May 2024 01:42 #301540
by Project_Hopeless
Joypad Joint and Cartesian Mode Jogging was created by Project_Hopeless
I have a 5-DOF robot. I have my Joypad setup so that in World/Cartesian, the left joystick is X and Y, the right Z. I have the directions relative a 1st person POV. This works as I intended.
When I switch to joint mode in Axis The individual axis that jogs is not natural and I would like to change that for joint mode jogging.
Is there a way to make the "input." assignments from the joypad conditional, one assignment set for World, another for Joint mode?
When I switch to joint mode in Axis The individual axis that jogs is not natural and I would like to change that for joint mode jogging.
Is there a way to make the "input." assignments from the joypad conditional, one assignment set for World, another for Joint mode?
Please Log in or Create an account to join the conversation.
28 May 2024 10:35 #301654
by andypugh
Replied by andypugh on topic Joypad Joint and Cartesian Mode Jogging
Yes. Look in your HAL file and you probably have a block of assignments like:
net jog-x input.0.analog0 axis.x.jog-analog joint.0.jog-analog
(This is from memory, but something like that)
You just need to swap the joint letters and axis numbers to suit your requirements.
net jog-x input.0.analog0 axis.x.jog-analog joint.0.jog-analog
(This is from memory, but something like that)
You just need to swap the joint letters and axis numbers to suit your requirements.
Please Log in or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 200
- Thank you received: 10
29 May 2024 00:17 - 29 May 2024 00:19 #301710
by Project_Hopeless
I'm looking to be able to toggle the joypad behavior based on the current jog mode mode World/Joint. Is that possible, a sort of "IF" statement in HAL?
Replied by Project_Hopeless on topic Joypad Joint and Cartesian Mode Jogging
Andy, That would make it a permanent change no?andypugh post=301654 userid=723
net jog-x input.0.analog0 axis.x.jog-analog joint.0.jog-analog
You just need to swap the joint letters and axis numbers to suit your requirements.
I'm looking to be able to toggle the joypad behavior based on the current jog mode mode World/Joint. Is that possible, a sort of "IF" statement in HAL?
Last edit: 29 May 2024 00:19 by Project_Hopeless.
Please Log in or Create an account to join the conversation.
29 May 2024 06:01 #301730
by Aciera
Replied by Aciera on topic Joypad Joint and Cartesian Mode Jogging
For switchkins (which you are probably using) you could connect your respective jogging input pins to 'kinstype.is-0' / 'kinstype.is-1' by means of an 'and2' component.
The following user(s) said Thank You: Project_Hopeless
Please Log in or Create an account to join the conversation.
Time to create page: 0.067 seconds