Skip to content

Display the robot on a VEX field using information from odometry and LVGL

Notifications You must be signed in to change notification settings

theol0403/odomDebug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OdomDebug

Display the robot on a VEX field using information from Okapilib odometry and LVGL.

odomDebug

Installation

Use in External Project

Building

To build, clone the repository and run prosv5 make template.

Then run prosv5 c fetch <template> to import the package into PROS.

Finally, run prosv5 c apply odomDebug --force-apply in your destination project.

You can now use odomDebug in your external project.

Use Pre-built Package

Instead of building the project yourself you can instead use a pre-built package to use in your external project. Download [email protected] from the repository and then fetch into PROS as above.

Use Standalone Project

You can also use this repository as a standalone project and run it directly on the robot. Build by running prosv5 make.

src/opcontrol.cpp contains an example program.

Use

Include the header into your file: #include "odomDebug/odomDebug.hpp"

Initialize your chassis:

auto chassis = ChassisControllerBuilder()
.withMotors(1, -2)
.withDimensions({{4_in, 11_in}, imev5GreenTPR})
.withOdometry()
.buildOdometry();

Initialize the debugger

OdomDebug display(lv_scr_act(), LV_COLOR_ORANGE, chassis);

You can then run any operator control code and watch the display update.

About

Display the robot on a VEX field using information from odometry and LVGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published