View Single Post
  #3   Spotlight this post!  
Unread 30-08-2014, 12:39
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Gyro drift for a simple EV3

Quote:
Originally Posted by lgphoneeric View Post
So, the other day I got my hands on a mindstorm ev3. Since I've had experience with different robot programming from FLL to FRC, I thought I would build a simple Segway robot. The issue I am having though is the stupid gyro drift. My program is functioning correctly in the sense that if it tilts one direction to far it corrects, however, the point at where it tilts back is moving in a constant negative direction by about 2deg/sec.
Is there something I need to call up to stop this or is there a fix? I am using the robot C for the EV3.
If anyone has had experience with this or know anything about this please help.

Thanks
I don't have any EV3 experience, but gyro drift is a common issue. If the drift is consistent, you could compensate for it by adding 2 degrees every second.

If you're using the sensor to measure the robot tilting forward or backward, you should be using an accelerometer instead.

A gyro measures angular rate, which is integrated to give angular displacement. A small error in angular rate can result in a huge error in angular displacement over a period of several seconds because it relies on previous measurements to calculate the current measurement. It's useful when you want to measure which direction the robot is pointing.

An 2 or 3 axis accelerometer can be used to measure the direction of the acceleration of gravity. Unlike the gyro, it does not rely on the accuracy of previous measurements.