fn apply_calibration_value(&mut self, calib: Vec<CalibData>) -> Result<()> {
        for (ch, &CalibData { rdc, temp }) in calib.iter().enumerate() {
            self.card
                .control_by_name::<IntControl>(&self.setting.controls[ch].rdc_ctrl)?
                .set(rdc)?;
            self.card
                .control_by_name::<IntControl>(&self.setting.controls[ch].temp_ctrl)?
                .set(Self::celsius_to_dsm_unit(temp))?;
        }
        Ok(())
    }
/// Applies the calibration value to the amp.
Applies the calibration value to the amp.
Applies the calibration value to the amp .
fn apply_calibration_value(&mut self, calib: Vec<CalibData>) -> Result<()> {
        for (ch, &CalibData { rdc, temp }) in calib.iter().enumerate() {
            self.card
                .control_by_name::<IntControl>(&self.setting.controls[ch].rdc_ctrl)?
                .set(rdc)?;
            self.card
                .control_by_name::<IntControl>(&self.setting.controls[ch].temp_ctrl)?
                .set(Self::celsius_to_dsm_unit(temp))?;
        }
        Ok(())
    }
fn apply_calibration_value ( & mut self , calib : Vec < CalibData > ) -> Result < ( ) > { for ( ch , & CalibData { rdc , temp } ) in calib . iter ( ) . enumerate ( ) { self . card . control_by_name :: < IntControl > ( & self . setting . controls [ ch ] . rdc_ctrl ) ? . set ( rdc ) ? ; self . card . control_by_name :: < IntControl > ( & self . setting . controls [ ch ] . temp_ctrl ) ? . set ( Self :: celsius_to_dsm_unit ( temp ) ) ? ; } Ok ( ( ) ) }
Applies the calibration value to the amp.
Applies the calibration value to the amp .
&mut self
calib
Vec<CalibData>
&mut self
calib
Vec<CalibData>