AnsweredAssumed Answered

stm32f3discovery read gyro acc mag data take long time

Question asked by jipeng.sun on Mar 18, 2015
Latest reply on Mar 25, 2015 by AvaTar
I have a stm32f3discovery board,I want read the sensor's data, I use the driver in demo, but it take about 700 mseconds to get it, is this normal? but i want to handle these data under 20Hz.

      seconds0 = millis();
          seconds = seconds0 - seconds1;
          if (seconds >= 5) {
           sprintf(output, "seconds is %d", seconds);
           uartPrint(output);
            GyroReadAngRate(gyro);
            CompassReadMag(mag);
            CompassReadAcc(acc);
          seconds1 = seconds0;
          }

Outcomes