Example #1
0
        public UniversalMovement(IMovement baseMovement, GraphModifierDelegate graphModifier)
        {
            Sensors = new List <ISensor>(capacity: baseMovement.Sensors.Count);

            for (int i = 0; i < baseMovement.Sensors.Count; i++)
            {
                Sensors.Add(new UniversalSensor(baseMovement.Sensors[i], graphModifier));
            }
        }
Example #2
0
        public UniversalSensor(ISensor baseSensor, GraphModifierDelegate graphModifier)
        {
            SensorInfo = baseSensor.SensorInfo;

            X   = graphModifier(baseSensor.X);
            Y   = graphModifier(baseSensor.Y);
            Z   = graphModifier(baseSensor.Z);
            EMG = graphModifier(baseSensor.EMG);
        }