Skip to main content

A tiny python port of WPILib's driverstation class

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for DSInterface, version 0.1rc3
Filename, size File type Python version Upload date Hashes
Filename, size DSInterface-0.1rc3-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size DSInterface-0.1rc3.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page