MCPcopy Index your code
hub / github.com/LiamBindle/PyVESC

github.com/LiamBindle/PyVESC @1.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.5 ↗ · + Follow
79 symbols 203 edges 15 files 34 documented · 43% updated 16mo ago1.0.5 · 2017-01-31★ 9017 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PyVESC Build Status Documentation Status

PyVESC is aimed at being a easy to use and robust python implementation of the communication protocol used by the VESC - Open Source ESC by Benjamin Vedder. Its a great project with a really great community and I'd urge anyone interested in motor controllers to take a look at it.

That being said, if you're here you probably already know about it. This small project was written by Liam Bindle for the University of Saskatchewan Space Design Team as our primary language for non-embedded system is Python. You might wonder why you might need a library to handling packing and parsing VESC messages since Pythons standard struct module is great for almost exaclty this. PyVESC's usefulness comes from the fact that PyVESC is: - Well tested - Robust in handling corrupt packets in a buffer - Messages are easily extensible so that PyVESC can be used as a generic message/codec protocol (ie. at the USST we use PyVESC for sending messages to all of our embedded systems) - Implements a number of common-error catching exceptions to speed up your development

Documentation

For the latest version of PyVESC's documentation Read The Docs

Contributing

Obviously this is just a quick and dirty project; however, if you have any ideas, critiques or changes just let me know or submit a pull request.

License

Just like VESC, PyVESC is distributed under a Creative Commons ShareALike 4.0 International License.

Core symbols most depended-on inside this repo

fmt
called by 7
pyvesc/packet/structure.py
pack
called by 6
pyvesc/packet/codec.py
_next_possible_packet_index
called by 3
pyvesc/packet/codec.py
_recovery_recurse
called by 3
pyvesc/packet/codec.py
unpack
called by 3
pyvesc/packet/codec.py
_packet_size
called by 2
pyvesc/packet/codec.py
_unpack
called by 2
pyvesc/packet/codec.py
generate
called by 2
pyvesc/packet/structure.py

Shape

Method 42
Class 30
Function 7

Languages

Python100%

Modules by API surface

test.py32 symbols
pyvesc/packet/codec.py18 symbols
pyvesc/packet/structure.py8 symbols
pyvesc/messages/setters.py6 symbols
pyvesc/messages/base.py6 symbols
pyvesc/interface.py3 symbols
pyvesc/packet/exceptions.py2 symbols
pyvesc/messages/getters.py2 symbols
pyvesc/examples/simple.py1 symbols
pyvesc/examples/get_values.py1 symbols

For agents

$ claude mcp add PyVESC \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page