blob: 7d93397cebc105e3df474a0626c9df3371496c35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- Configuration.cpp.orig 2017-01-05 15:57:44 UTC
+++ Configuration.cpp
@@ -2548,13 +2548,13 @@ void Configuration::impl::fill_port_comb
auto Configuration::impl::apply_calibration (Frequency f) const -> Frequency
{
- return std::llround (frequency_calibration_intercept_
+ return llround (frequency_calibration_intercept_
+ (1. + frequency_calibration_slope_ppm_ / 1.e6) * f);
}
auto Configuration::impl::remove_calibration (Frequency f) const -> Frequency
{
- return std::llround ((f - frequency_calibration_intercept_)
+ return llround ((f - frequency_calibration_intercept_)
/ (1. + frequency_calibration_slope_ppm_ / 1.e6));
}
|