Пример #1
0
    public int Orientation_Smoothing = 2;    // Adjust as necessary (1 = No sampling, > 1 = increased smoothing)

    // Use this for initialization
    void Start()
    {
        _AVG_X     = new DataSmooth(Position_Smoothing);
        _AVG_Y     = new DataSmooth(Position_Smoothing);
        _AVG_Z     = new DataSmooth(Position_Smoothing);
        _AVG_Pitch = new DataSmooth(Orientation_Smoothing);
        _AVG_Roll  = new DataSmooth(Orientation_Smoothing);
        _AVG_Yaw   = new DataSmooth(Orientation_Smoothing);
    }
Пример #2
0
    private const int _ORIENTATION_SMOOTHING = 3;    // Adjust as necessary (1 = No sampling, > 1 = increased smoothing)

    // Use this for initialization
    void Start()
    {
        _OSCReader = new OSCReader();
        _AVG_X     = new DataSmooth(_POSITION_SMOOTHING);
        _AVG_Y     = new DataSmooth(_POSITION_SMOOTHING);
        _AVG_Z     = new DataSmooth(_POSITION_SMOOTHING);
        _AVG_QtX   = new DataSmooth(_ORIENTATION_SMOOTHING);
        _AVG_QtY   = new DataSmooth(_ORIENTATION_SMOOTHING);
        _AVG_QtZ   = new DataSmooth(_ORIENTATION_SMOOTHING);
        _AVG_QtW   = new DataSmooth(_ORIENTATION_SMOOTHING);
    }