if (PyErr_Occurred()) { PyErr_SetString(PyExc_ValueError, (char*)Unpack_VEC3_ValueError); return -1; } dest.setData(i, val); } return 0; // Success } static PyGetSetDef RTIMU_Settings_getset[] = { RTIMU_PARAM_INT(IMUType, m_imuType), RTIMU_PARAM_INT(FusionType, m_fusionType), RTIMU_PARAM_INT(I2CAddress, m_I2CSlaveAddress), RTIMU_PARAM_INT(I2CBus, m_I2CBus), RTIMU_PARAM_INT(CompassCalValid, m_compassCalValid), RTIMU_PARAM_VEC3(CompassCalMin, m_compassCalMin), RTIMU_PARAM_VEC3(CompassCalMax, m_compassCalMax), RTIMU_PARAM_INT(CompassCalEllipsoidValid, m_compassCalEllipsoidValid), RTIMU_PARAM_VEC3(CompassCalEllipsoidOffset, m_compassCalEllipsoidOffset), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr11, m_compassCalEllipsoidCorr[0][0]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr12, m_compassCalEllipsoidCorr[0][1]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr13, m_compassCalEllipsoidCorr[0][2]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr21, m_compassCalEllipsoidCorr[1][0]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr22, m_compassCalEllipsoidCorr[1][1]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr23, m_compassCalEllipsoidCorr[1][2]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr31, m_compassCalEllipsoidCorr[2][0]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr32, m_compassCalEllipsoidCorr[2][1]), RTIMU_PARAM_FLOAT(CompassCalEllipsoidCorr33, m_compassCalEllipsoidCorr[2][2]), RTIMU_PARAM_INT(AccelCalValid, m_accelCalValid), RTIMU_PARAM_VEC3(AccelCalMin, m_accelCalMin), RTIMU_PARAM_VEC3(AccelCalMax, m_accelCalMax),
if (PyErr_Occurred()) { PyErr_SetString(PyExc_ValueError, (char*)Unpack_VEC3_ValueError); return -1; } dest.setData(i, val); } return 0; // Success } static PyGetSetDef RTIMU_Settings_getset[] = { RTIMU_PARAM_INT(IMUType, m_imuType), RTIMU_PARAM_INT(FusionType, m_fusionType), RTIMU_PARAM_INT(I2CAddress, m_I2CSlaveAddress), RTIMU_PARAM_INT(I2CBus, m_I2CBus), // m_compassCalValid RTIMU_PARAM_VEC3(CompassCalMin, m_compassCalMin), RTIMU_PARAM_VEC3(CompassCalMax, m_compassCalMin), RTIMU_PARAM_INT(MPU9150GyroAccelSampleRate, m_MPU9150GyroAccelSampleRate), RTIMU_PARAM_INT(MPU9150CompassSampleRate,m_MPU9150CompassSampleRate), RTIMU_PARAM_INT(MPU9150GyroAccelLpf, m_MPU9150GyroAccelLpf), RTIMU_PARAM_INT(MPU9150GyroFst, m_MPU9150GyroFsr), RTIMU_PARAM_INT(MPU9150AccelFsr, m_MPU9150AccelFsr), RTIMU_PARAM_INT(GD20HM303DGyroSampleRate, m_GD20HM303DGyroSampleRate), RTIMU_PARAM_INT(GD20HM303DGyroBW, m_GD20HM303DGyroBW), RTIMU_PARAM_INT(GD20HM303DGyroHpf, m_GD20HM303DGyroHpf), RTIMU_PARAM_INT(GD20HM303DGyroFsr, m_GD20HM303DGyroFsr), RTIMU_PARAM_INT(GD20HM303DAccelSampleRate, m_GD20HM303DAccelSampleRate), RTIMU_PARAM_INT(GD20HM303DAccelFsr, m_GD20HM303DAccelFsr), RTIMU_PARAM_INT(GD20HM303DAccelLpf, m_GD20HM303DAccelLpf), RTIMU_PARAM_INT(GD20HM303DCompassSampleRate, m_GD20HM303DCompassSampleRate), RTIMU_PARAM_INT(GD20HM303DCompassFsr, m_GD20HM303DCompassFsr),