Jump to content
I2Cdevlib Forums

alex8toh

Members
  • Posts

    1
  • Joined

  • Last visited

alex8toh's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. yes, what is the nfc() function ? // do the integral thing ax = (float(aaWorld.x)/16384)*G; // convert to cm / s ay = (float(aaWorld.y)/16384)*G; Serial.print(ax); Serial.print("\t"); Serial.println(ay); vx = prevVx + ((prevAx+ax)/2)*dt; vy = prevVy + ((prevAy+ay)/2)*dt; prevPx = prevPx + ((prevVx+vx)/2)*dt; prevPy = prevPy + ((prevVy+vy)/2)*dt; prevVx = vx; prevVy = vy; prevAx = ax; prevAy = ay; I'm experiencing the drifting problem. Please advise !
×
×
  • Create New...