コード例 #1
0
        private void _memsControl_SelectedGyroscopeSensChanged(object sender, GyroscopeSensitivity gyroSens)
        {
            if (_device.ReadParam <DeviceState>(Parameter.State) == DeviceState.Disconnected)
            {
                return;
            }

            _device.SetParam(Parameter.GyroscopeSens, gyroSens);
            var updatedParam = _device.ReadParam <GyroscopeSensitivity>(Parameter.GyroscopeSens);

            if (updatedParam != gyroSens)
            {
                _memsControl.GyroscopeSensitivityComboValue = updatedParam;
            }
        }
コード例 #2
0
 private static extern int device_set_GyroscopeSens(IntPtr devicePtr, GyroscopeSensitivity gyroSens);
コード例 #3
0
 private static extern int device_read_GyroscopeSens(IntPtr devicePtr, out GyroscopeSensitivity outGuroSens);