Giter Site home page Giter Site logo

dsinterface's Introduction

DSInterface

A tiny python port of WPILib's driverstation class

Installation

DSInterface can be installed from pip using the command:

python3 -m pip install DSInterface

Next, import it in your project:

import DSInterface as DSI

Usage

In order to acces any data from FMS or the DriverStation, the DriverStation class must be initalized.

ds = DSI.DriverStation()

Pulling data from FMS

These are the avalible methods for DriverStation:

Method What it Does
getAlliance() Returns a DSI.alliances enum to represent the alliance
getStation() Returns an int from 1 to 3 that matches with your assigned station for the following match
getMatchType() Returns an int that represents the match type
getFMSControlData() Returns the raw FMS control data
getReplayNumber() Returns the replay number
getMatchNumber() Returns the match number
getEventName() Returns the event name as a string
getGSM() Returns the game specific message as an uppercase string

dsinterface's People

Contributors

ewpratten avatar

Watchers

 avatar  avatar  avatar  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.