mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Add an accessor method to Configuration to get the current calibration parameters
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8163 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									d1f27011b5
								
							
						
					
					
						commit
						592316fc42
					
				| @ -672,6 +672,10 @@ QDir Configuration::azel_directory () const {return m_->azel_directory_;} | ||||
| QString Configuration::rig_name () const {return m_->rig_params_.rig_name;} | ||||
| bool Configuration::pwrBandTxMemory () const {return m_->pwrBandTxMemory_;} | ||||
| bool Configuration::pwrBandTuneMemory () const {return m_->pwrBandTuneMemory_;} | ||||
| auto Configuration::calibration_params () const -> CalibrationParams | ||||
| { | ||||
|   return {m_->frequency_calibration_intercept_, m_->frequency_calibration_slope_ppm_}; | ||||
| } | ||||
| 
 | ||||
| void Configuration::adjust_calibration_parameters (double intercept, double slope_ppm) | ||||
| { | ||||
|  | ||||
| @ -159,6 +159,12 @@ public: | ||||
|   QColor color_NewCall () const; | ||||
|   bool pwrBandTxMemory () const; | ||||
|   bool pwrBandTuneMemory () const; | ||||
|   struct CalibrationParams | ||||
|   { | ||||
|     double intercept; | ||||
|     double slope_ppm; | ||||
|   }; | ||||
|   CalibrationParams calibration_params () const; | ||||
| 
 | ||||
|   // Adjust the current calibration parameters, both arguments are in
 | ||||
|   // Hertz. They will be added to the current values.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user