Go to Post Just think of it as a FIRST weekend sleep schedule.. 3 hours is more than enough. :p - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2015, 13:37
VaneRaklan VaneRaklan is offline
Registered User
FRC #2557 (The SOTABots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Tacoma, WA
Posts: 17
VaneRaklan is an unknown quantity at this point
Gyro Instance

I was wondering if anyone knew a way to take an instance of a gyro. So creating a variable that would hold a single value from the gyro that won't change with the actual movement of the gyro. So if you took he instance and it read 263.453 degrees and you started rotating till the gyro read say 340.231 degrees or something; that variable of instance would still read 263.453.

Any ideas on how to do this or some way of doing something like this? (TBH the answer is probably staring me straight in my face)
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2015, 13:54
wmarshall11 wmarshall11 is offline
Registered User
FRC #2399
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2011
Location: Cleveland, OH
Posts: 34
wmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to behold
Re: Gyro Instance

Code:
double gyroVal = gyro.getAngle()
The value of gyroVal will not change.
__________________
Programming Project Manager and Lead Web Developer 2012 - 2014
Mount Olive Robotics Team, FRC 11

Mentor 2015 -
The Fighting Unicorns, FRC 2399
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2015, 15:12
VaneRaklan VaneRaklan is offline
Registered User
FRC #2557 (The SOTABots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Tacoma, WA
Posts: 17
VaneRaklan is an unknown quantity at this point
Re: Gyro Instance

See that's what i thought, but I wasn't sure. Thank you!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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