Skip to content

↗️ Gyroscope widget. Supports calibration to 0 on click.

Notifications You must be signed in to change notification settings

FRCDashboard/addon-Gyro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gyroscope Widget addon for FRC Dashboard

Live updating, bare-bones gyro widget. Supports resetting to zero on click for calibration.

Installation

  1. Copy the contents of gyro.html to wherever in the dashboard you desire.
  2. Copy gyro.js into the components directory of your FRCDashboard system.
  3. Link the script from index.html, for example:
<script src="components/gyro.js"></script>
  1. Copy gyro.css to the css directory in your FRCDashboard system.
  2. Link the CSS from index.html, for example:
<link rel="stylesheet" href="css/gyro.css">
  1. If necessary, change the keys of the NetworkTables values used in gyro.js to the keys your robot code uses.

Alternatively, you could just copy all the JavaScipt code into ui.js or other JavaScript script, but that's a bit tougher to keep organized.