Giter Site home page Giter Site logo

ize69 / 4303-vex-odometry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emcode25/4303-vex-odometry

0.0 0.0 0.0 49 KB

A small library which provides autonomous timeouts and experimental odometry utilizing Vectors.

License: GNU General Public License v2.0

C++ 60.68% Makefile 39.32%

4303-vex-odometry's Introduction

Vex Odometry -- VODOM

REQUIREMENTS:

  • Windows 10 PC (MacOS is untested but should work)
  • VEXcode Pro V5 v2.0.0+

INSTALLATION:

Use the files included in "Release" which includes ALL the files you will need, NOTHING else!

  1. Add include files here: [VEX Robotics directory]\VEXcode Pro V5\sdk\vexv5\include
  2. Add "libvodom.a" file here: [VEX Robotics directory]\VEXcode Pro V5\sdk\vexv5\gcc\libs

After you create a project, you will need to copy the "vex" folder to your project to compile correctly.


Alternatively, if you'd like to edit the files yourself, edit the "mkenv.mk" file and copy-paste this line where it says LIBS like so:

Original:

  • LIBS = --start-group -lv5rt -lstdc++ -lc -lm -lgcc --end-group

Replaced:

  • LIBS = --start-group -lv5rt -lstdc++ -lc -lm -lgcc -lvodom --end-group

USAGE:

The three header files are to be included as needed like so:

  1. #include "robot.h"
  2. #include "vmath.h"
  3. #include "vmap.h"

The "vmap.h" requires "robot.h" and "vmath.h" to function properly.

DOCS:

  • robot.h - A subclass of vex::smartdrive which includes a timeout parameter that will stop when either the robot is done or the time has been reached, "preventing" stuck robots in auton. It includes all the functionality of vex::smartdrive and by inheritance, vex::drivetrain.

  • vmath.h - A math namespace "vmath" that contains a Vector2D class for "physics" applications, including scalar and dot products. There is no plan as of now to create a Vector3D class.

  • vmap.h - A math namespace "vmap" that contains a Map class to provide a virtual map for the VEX playing field, and an interface to control the robot.

LICENSE:

See "LICENSE.txt"

4303-vex-odometry's People

Contributors

emcode25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.