PyVESC icon indicating copy to clipboard operation
PyVESC copied to clipboard

what's the mean of 61 in pyvesc/examples/get_values.py??????

Open niteofhunter opened this issue 4 years ago • 4 comments

image

My MayTech motor is Successfully working now, but I can't get rpm and position of motor...

and I can't understand the mean of 61 in ser.read(61)

niteofhunter avatar Jun 03 '20 08:06 niteofhunter

61 is the framesize. It didnt work for me on firmware version 5 on VESC 6. I changed it to 78 and it works.

(To come up with 78 I hade a look here and printed len(buffer) and frame_size. https://github.com/LiamBindle/PyVESC/blob/45f372d3075a344c0d6d797565809140cab7cebe/pyvesc/protocol/packet/codec.py#L92-L93)

Launchpad-McQ avatar Aug 08 '20 12:08 Launchpad-McQ

@psomers3 Any chance you would have time to implement this?

LiamBindle avatar Oct 06 '20 13:10 LiamBindle

@LiamBindle I can try and remember to include this when I get around to messing with the project I used this on, but that will likely be a little while (~month).

psomers3 avatar Oct 06 '20 15:10 psomers3

That would be terrific. Thanks!

LiamBindle avatar Oct 06 '20 15:10 LiamBindle