roundSensorData method

void roundSensorData()

Implementation

void roundSensorData() {
  sensorData.gyroX =
      sensorData.gyroX.map((x) => (x * 100).round() / 100).toList();
  sensorData.gyroY =
      sensorData.gyroY.map((x) => (x * 100).round() / 100).toList();
  sensorData.gyroZ =
      sensorData.gyroZ.map((x) => (x * 100).round() / 100).toList();
  sensorData.accelX =
      sensorData.accelX.map((x) => (x * 100).round() / 100).toList();
  sensorData.accelY =
      sensorData.accelY.map((x) => (x * 100).round() / 100).toList();
  sensorData.accelZ =
      sensorData.accelZ.map((x) => (x * 100).round() / 100).toList();
}