How vedderb/vesc_tool works
VESC Tool is a cross-platform desktop and mobile application for configuring, monitoring, and programming VESC hardware. The principal workflow is to connect to a controller, exchange commands and configuration through the interface and transport layers, then present or modify controller state in UI pages. Other substantial capabilities include firmware and ESP32 programming, logging and plotting, scripting, display editing, mapping, and Markdown parsing. Several subsystem links are supported only by the file index or project structure, so uncertain links are omitted rather than asserted.
Main entry points: pages Configuration pages · vescinterface.cpp VESC interface · main.cpp Application entry · mainwindow.cpp Main window
Components 22
Application UI
- Application entry
main.cpp - Main window
mainwindow.cpp - Configuration pages
pages - Setup wizards
startupwizard.cpp - Shared utilities
utility.h
Device Communication
- VESC interface
vescinterface.cpp - Commands and packets
commands.cpp - Connection transports
bleuart.cpp - VESC controller
- Command polling
pollmanager.cpp - Configuration data
configparams.cpp - Shared data types
datatypes.h
Tools and Analysis
- Firmware handling
mobile/fwhelper.cpp - ESP32 flashing
esp32/esp_loader.c - Log files
mobile/logreader.cpp - Plotting
widgets/qcustomplot.h - Code editor
QCodeEditor/src/internal/QCodeEditor.cpp - Display editor
display_tool/dispeditor.cpp
Content and Mapping
- Markdown parser
maddy/parser.h - Map display
map/mapwidget.cpp - Map tile client
map/osmclient.cpp
Other components
- VESC Tool user
Connections 24
- VESC Tool user → Application entry: starts
- Application entry → Main window: opens
- Main window → Configuration pages: presents
- Configuration pages → VESC interface: configures
pages/pagecontrollers.cpp - Configuration pages → VESC interface: sends commands
pages/pagecontrollers.cpp - Command polling → Commands and packets: dispatches
pollmanager.cpp - Command polling → VESC interface: gets commands
pollmanager.cpp - VESC interface → Commands and packets: uses
- VESC interface → Connection transports: uses
- VESC interface → Configuration data: uses
- VESC interface → Shared data types: uses
- Connection transports → VESC controller: communicates
- Application entry → Firmware handling: references
main.cpp - Application entry → Log files: references
main.cpp - Application entry → ESP32 flashing: supports flashing
- Log files → Plotting: analyzes with
- Configuration pages → Plotting: displays data
- Configuration pages → Code editor: provides scripting
- Configuration pages → Display editor: opens tool
- Map display → Map tile client: requests tiles
- Configuration pages → Map display: presents
- Setup wizards → VESC interface: assists setup
- Configuration pages → Shared utilities: uses
pages/pagecontrollers.cpp - Main window → Markdown parser: renders content