Go to Post So measure not by the masses, but by the sparks that you generate. - Kims Robot [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-03-2016, 15:01
Maxwell777's Avatar
Maxwell777 Maxwell777 is offline
Is allowed to touch stuff now
AKA: Jackson Gray
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Phoenix, AZ
Posts: 72
Maxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura about
Analog Gyro .getAngle() function occasionally giving massive random values

We're working in java, and we're running into an issue with our gyro. Occasionally we get large position spikes from the .getAngle() function. Not sure why. We're using the gyro in between threads, could it be an issue with the .getAngle() not being thread safe? I noticed that we don't (I think) get spikes in the main thread that the roborio runs by default, we only get spikes in other threads. It's been really annoying to debug because it only happens like once a minute or so.

I posted to Programming rather than to Java to see if this was an issue not just specific to java. I also can post code if needed, but for the most part it's fairly straight forward code. I was wondering if anyone has seen anything similar, or knows about things like this.

Thanks for any help in advance.
__________________
But why?
 


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 12:42.

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