You are here

vesc canbus control PPM

1 post / 0 new
JiaheXu
Offline
Last seen: 2 months 3 days ago
VESC Free
Joined: 2023-03-13 02:47
Posts: 3
vesc canbus control PPM

Hi everyone,

    I am trying to use CANBUS signal controlling PPM output for servo. I added the following code in command_can.c, you can find the link https://github.com/JiaheXu/bldc/blob/master/comm/comm_can.c#L2131

	case CAN_PACKET_SET_SERVO_POS: {
		ind = 0;
		servo_simple_set_output(buffer_get_float16(data8, 1000.0, &ind));
		//timeout_reset();
	} break;

when I try the CANBUS command, the servo does spin, but it never stop (cannot accept the next CANBUS command). How can I fix this?

 

Best,

Jiahe Xu