|
@@ -2,7 +2,6 @@ using System;
|
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
using System.Collections;
|
|
using System.Collections;
|
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json;
|
|
|
-using o0;
|
|
|
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
public class Axis9Handler : AxisBaseHandler
|
|
public class Axis9Handler : AxisBaseHandler
|
|
@@ -84,9 +83,7 @@ public class Axis9Handler : AxisBaseHandler
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public override bool IsGyrCompleted() {
|
|
public override bool IsGyrCompleted() {
|
|
|
- FieldInfo fieldInfo = _9Axis.Attitude.GetType().GetField("GyrCalibrater", BindingFlags.Instance | BindingFlags.NonPublic);
|
|
|
|
|
- var mm = fieldInfo.GetValue(_9Axis.Attitude) as MeanMaintainer<o0.Geometry.Vector<double>>;
|
|
|
|
|
- return mm.Count > 0;
|
|
|
|
|
|
|
+ return _9Axis.Attitude.GyrCalibrater.Count > 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public override bool IsMagCompleted() {
|
|
public override bool IsMagCompleted() {
|