Пример #1
0
 public LSM9DS1ImuSensor(
     byte accelGyroI2CAddress,
     byte magI2CAddress,
     LSM9DS1Config config,
     SensorFusion fusion)
     : base(fusion)
 {
     _accelGyroI2CAddress = accelGyroI2CAddress;
     _magI2CAddress       = magI2CAddress;
     _config    = config;
     SampleRate = 100;
 }
Пример #2
0
        protected ImuSensor(SensorFusion fusion)
        {
            Fusion = fusion;

            AxisRotation = new AxisRotation();

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