Skip to content

Instantly share code, notes, and snippets.

@primetoxinz
Created January 18, 2018 02:04
Show Gist options
  • Save primetoxinz/0805ad8d8ca803c64ec0c5ef2c34adb3 to your computer and use it in GitHub Desktop.
Save primetoxinz/0805ad8d8ca803c64ec0c5ef2c34adb3 to your computer and use it in GitHub Desktop.
{
"game": [
{
"type": "header",
"data": {
"title": "Game"
}
},
{
"type": "numbervalue",
"data": {
"prefice": "Robot Time",
"key": "/SmartDashboard/robotTime",
"id": "robotTime",
"formats": {
"low": {
"predicate": {
"min": 0,
"max": 100
},
"color": "#0000FF"
}
}
}
}
],
"main": [
{
"type": "header",
"data": {
"title": "Stats",
"background": "#AA00AA",
"color": "white"
}
},
{
"type": "graph",
"data": {
"prefice": "Voltage",
"key": "/SmartDashboard/voltage",
"id": "voltage",
"format": {
"interpolation": "linear",
"minValue": 0,
"grid": {
"strokeStyle": "gray",
"fillStyle": "black",
"lineWidth": 1,
"millisPerLine": 250,
"verticalSections": 6
}
}
}
},
{
"type": "graph",
"data": {
"prefice": "Current",
"key": "/SmartDashboard/current",
"id": "voltage",
"format": {
"interpolation": "linear",
"minValue": 0,
"grid": {
"lineWidth": 1,
"millisPerLine": 250,
"verticalSections": 6
}
}
}
}
],
"options": [
{
"type": "header",
"data": {
"title": "Options",
"background": "#AA0000",
"color": "white"
}
},
{
"type": "selector",
"data": {
"prefice": "Autonomous",
"key": "/SmartDashboard/autonomous",
"id": "autonomous",
"choices": [
"left",
"center",
"right"
]
}
},
{
"type": "stringvalue",
"data": {
"prefice": "Robot Phase",
"key": "/SmartDashboard/robotPhase",
"id": "robotPhase"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment