case BT1:
if(state) {
//act ON
+ act_jaws(CATCH);
} else {
;//act OFF
}
case AXIS_S1:
switch (value) {
case 32767:
+ act_jaws(CLOSE);
printf("jaws CLOSE\n");
break;
case -32767:
+ act_jaws(OPEN);
printf("jaws OPEN\n");
break;
case 0:
case AXIS_S2:
switch (value) {
case 32767:
- act_lift(40000, 0);
+ act_lift(0, 0);
printf("lift DOWN\n");
break;
case -32767:
- act_lift(2000, 0);
+ act_lift(0x190, 0);
printf("lift UP\n");
break;
case 0:
/* creating publishers */
robottype_publisher_motion_speed_create(&orte, send_dummy_cb, &orte);
robottype_publisher_lift_cmd_create(&orte, send_dummy_cb, &orte);
+ robottype_publisher_jaws_cmd_create(&orte, send_dummy_cb, &orte);
if(open_joystick(joy_name, &num_of_axis, &num_of_buttons) == -1) {
printf("Joystick not found, exiting...\n");