Saruulmongolia / aeroquad

Automatically exported from code.google.com/p/aeroquad
0 stars 0 forks source link

Latest BMP180 and ITG3200 6 byte read change is buggy #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. See 
http://aeroquad.com/showthread.php?1407-Floats&p=13784&viewfull=1#post13784

What is the expected output? What do you see instead?
Make sure that the previous time variables are really set in the last line of 
the funcion, behind the smooth call, not somewhere inbetween.

Accel.h:
void measure(void) {
  currentTime = micros();
  /*
  ...

  // last line of function
  previousTime = currentTime;
}

Gyro.h:
void measure(void) {
  currentGyroTime = micros();
  /*
  ...

  // last line of function
  previousGyroTime = currentGyroTime;
}

Original issue reported on code.google.com by al...@arcor.de on 26 Nov 2010 at 1:18

GoogleCodeExporter commented 8 years ago
This will be taken out all together in the latest version.

Original comment by CaranchoEngineering@gmail.com on 26 Nov 2010 at 9:42

GoogleCodeExporter commented 8 years ago
Fixed, but put timing back in to calculate heading with yaw gyro.

Original comment by CaranchoEngineering@gmail.com on 4 Dec 2010 at 10:48