Skip to content

theol0403/lib7842

Repository files navigation

lib7842

lib7842 is a collection of powerful utilities and motion algorithms for VEX V5 robots. Designed to be used with the PROS framework, it builds on top of the OkapiLib library. lib7842 was in development during my time on the 7842F/B robotics team between 2018-2021.

This is released as-is, with little documentation (other than the source code) and no support. All source code is located in /include/lib7842/ and /src/lib7842/.

Major features:

  • Constexpr spline representation and generation
  • Open-loop skid-steer and x-drive trajectory generation
  • Convenience classes for asynchronous actions and task management
  • Three-encoder and two-encoder odometry
  • Pure pursuit path following
  • LVGL-based GUI system for displaying important information on the V5 Brain

Some parts of the library, especially the odometry and trajectory generation, are documented in my journal.

Example usage of the library, and what is possible using an autonomous routine, is available in my change up competition code.

Demo

Demonstration of open-loop trajectory generator:

6th-place world skills run:

Constructed using desired trajectories like this:

Resulting in pre-planned wheel velocities like this:

Features

Trajectory Generation

Convenience

Odometry

Path Following

Architecture

  • Built on top of OkapiLib device abstractions, so is platform-agnostic
  • Can be built on PC using OkapiLib mocking library
  • LVGL GUI library can be developed on PC
  • Unit tests written for most components using doctest
    • Tests are included in class source files
    • Tests are run both in CI but also on debug deployments on the V5
  • Use git flow for development

About

An advanced motion control library for VEX robots

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •