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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DSInterface-0.1rc3.tar.gz.
File metadata
- Download URL: DSInterface-0.1rc3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c94d171858355eb4b22f09cfcc8491e7f9eb4675f4910b2ca7e6fcb033b78f5
|
|
| MD5 |
6bf7945b54a84fd8bbd61dd20ee4b7b3
|
|
| BLAKE2b-256 |
9241e045278156a94ad79eaccb121552265058c832406ce6c4303bd5bdd938a9
|
File details
Details for the file DSInterface-0.1rc3-py3-none-any.whl.
File metadata
- Download URL: DSInterface-0.1rc3-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d6b6f17e22a757334648780352d24b2a3e1f79f46aeb3d8bb8cf0a05cf3307
|
|
| MD5 |
07f04b9ad4300476de9e312635252f29
|
|
| BLAKE2b-256 |
4e062321a41708a8d9fbba3fc03cc3f1cf7750d6b07f892c2ad3b3c7b96670fe
|