pub unsafe extern "C" fn QTMS_SetCalibrationData(
cal: *const QtmCalibrationData,
saveCalToCfg: bool,
) -> ResultExpand description
Sets calibration data, taking effect immediately, and optionally saves it to cfg.
§Arguments
cal- Pointer to calibration data.saveCalToCfg- Whether or not to persist the calibration data incfg.
§Returns
0xC8A18009 if QTM is unavailable (in particular, QTM is always unavailable on N2DSXL), otherwise
whatever cfg:s commands return (if used), or 0 (success).
Note: There is no “get” counterpart for this function, and there is no way to see the current calibration data in use unless it has been saved to
cfg. Note: Due to an oversight, QTMS_SetQtmStatus allows changing QTM state on N2DSXL. This is not intended to be done, and is in fact never done by official software. If that is regardless the case, this function here doesn’t apply calibrations parameters (they may still be saved, however, even though QTM calibration blocks are always normally 0 on N2DSXL).