private int[] GetGyroscopeResults() { Span <int> results = null; try { results = _gyroscopeDevice.BurstRead(); _status |= ResultStatus.GyroscopeSuccess; } catch (Exception ex) { _logger.LogError("Error with Gyro"); _logger.LogError(ex.Message); _logger.LogError(ex.StackTrace); _status |= ResultStatus.GyroscopeFailure; } return(results.ToArray()); }