我在用自己的Swift编写更新版本时遇到了问题,源代码作为参考。
我不需要完整的源代码。只要提到的文件就可以了。这对我们的项目来说非常紧急。任何帮助都将不胜感激。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / ios”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > ios < / > < / div > < div类= " field-item奇怪" > < a href = " / resource-keywords /斯威夫特”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >迅速< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords / Objective - C”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > Objective - C < / > < / div > < / div > < / div > < div class = "字段 field-name-field-device field-type-taxonomy-term-reference field-label-above">
float _x, _y,
[[data subdataWithRange:NSMakeRange(7,2)] getBytes:&z length:2];_z; < br / >值=(浮动)x / 16.4 f; < br / > _y吗=(浮动)y / 16.4 f; < br / > _z = f(浮动)z / 16.4; < / p > < p > lastValueX =值;< br / > lastValueY = _y吗;< br / > lastValueZ = _z; < / p > < p > rotateX + = (lastValueX) / self.gyroscopeRate; < br / > rotateY + = (lastValueY) / self.gyroscopeRate; < br / > rotateZ + = (lastValueZ) / self.gyroscopeRate; < / p > < p > / / NSLog(@”腐烂%。2 f %。2 f %。2 f =比; %.2f %.2f %.2f (%d)", lastValueX, lastValueY, lastValueZ, rotateX, rotateY, rotateZ, self.gyroscopeRate);
FLog(@"GYR\t%.2fdeg\t%.2fdeg\t%.2fdeg", _x/self.gyroscopeRate, _y/self.gyroscopeRate, _z/self.gyroscopeRate);
isDirty = TRUE;
}