Coder Social home page Coder Social logo

2910common's Introduction

FRC Team 2910 Common code repository

This repository contains code that is shared between applications and robots that are created by FRC Team 2910, Jack in the Bot. The repository itself is currently split into two parts: common and robot. The common library contains code that does not depend on FIRST's WPILib, meaning it can run as a part of desktop applications. The robot library contains code that depends on WPILib and should only be ran on robots.

How to use in another project

The common library is imported into a project by using Git submodules. In order to add this project as a submodule run git submodule add https://github.com/FRCTeam2910/Common.git common in your project's root directory. This will clone this repository into the directory common.

Using the Common library

A dependency on the common library can be created by adding the following to your build.gradle file:

dependencies {
    ...
    compile project(':common')
    ...
}

The following also needs to be added to your settings.gradle file:

include ':common'

Using the Robot library

A dependency on the robot library can be created by adding the following to your build.gradle file:

plugins {
    ...
    id 'edu.wpi.first.GradleRIO' version '<GRADLERIO_VERSION>'
    ...
}
...
dependencies {
    ...
    compile project(':common:robot')
    ...
}

Replace <GRADLERIO_VERSION> with the version of GradleRIO you want to use.

NOTE: The common library does not need to be an explicit dependency because it is a dependency of the robot library.

The following also needs to be added to your settings.gradle file:

include ':common'
include ':common:robot'

2910common's People

Watchers

 avatar

Forkers

stewluj takbs2412

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.