Ejemplo n.º 1
0
 public LSM9DS1ImuSensor(
     byte accelGyroI2CAddress,
     byte magI2CAddress,
     LSM9DS1Config config,
     SensorFusion fusion)
     : base(fusion)
 {
     _accelGyroI2CAddress = accelGyroI2CAddress;
     _magI2CAddress       = magI2CAddress;
     _config    = config;
     SampleRate = 100;
 }
Ejemplo n.º 2
0
        protected long SampleInterval;                            // interval between samples in microseonds

        protected ImuSensor(SensorFusion fusion)
        {
            Fusion = fusion;

            AxisRotation = new AxisRotation();

            for (int i = 0; i < 3; i++)
            {
                _magMax[i] = -1000.0;
                _magMin[i] = 1000.0;
            }
        }