Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Sending Gyro Information to Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=154200)

mrada6 24-01-2017 19:49

Sending Gyro Information to Dashboard
 
First year FRC member in charge of my teams programming department. I am having trouble taking the information for the robots gyro and sending it to the dashboard.

I am able to do a System.out.println() of the gyro information so I know it is reading the information. But i am unable to get it to the GUI of the dashboard. Any help would be greatly appreciated.

SamCarlberg 24-01-2017 20:15

Re: Sending Gyro Information to Dashboard
 
Code:

SmartDashboard.putNumber("Gyro angle", gyro.getAngle());

TylerHarmon 25-01-2017 16:23

Re: Sending Gyro Information to Dashboard
 
Quote:

Originally Posted by mrada6 (Post 1635858)
First year FRC member in charge of my teams programming department. I am having trouble taking the information for the robots gyro and sending it to the dashboard.

I am able to do a System.out.println() of the gyro information so I know it is reading the information. But i am unable to get it to the GUI of the dashboard. Any help would be greatly appreciated.

Read the documentation found here. Don't ask questions like this without spending 5 minutes to read about it in the documentation.

Oblarg 25-01-2017 16:28

Re: Sending Gyro Information to Dashboard
 
Note that as of last year, the ideal display widget for gyro information ("compass") was broken.

mrada6 25-01-2017 18:00

Re: Sending Gyro Information to Dashboard
 
Quote:

Originally Posted by Oblarg (Post 1636236)
Note that as of last year, the ideal display widget for gyro information ("compass") was broken.

Thank you very much this is what I was trying to do and was unable to do so. I thought the sample code I was using was not working.

TylerHarmon 25-01-2017 19:00

Re: Sending Gyro Information to Dashboard
 
Quote:

Originally Posted by mrada6 (Post 1636293)
Thank you very much this is what I was trying to do and was unable to do so. I thought the sample code I was using was not working.

Were you able to print the gyro's position to the smart dashboard? The compass feature being broken shouldn't interfere with that.


All times are GMT -5. The time now is 15:36.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi