Skip to content

Commit a463261

Browse files
committed
Update Example4 - use P1.0 and I 0.0
1 parent 12d3f16 commit a463261

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

examples/Example04_setFrequencyByBiasMillis/Example04_setFrequencyByBiasMillis.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ void setup()
8181
Serial.print(myTCXO.getMaxFrequencyChangePPB());
8282
Serial.println(" PPB");
8383

84-
myTCXO.setFrequencyByBiasMillis(200.0e-6); // Set the frequency by clock bias (+200ns, +200e-6ms)
84+
Serial.print("Frequency control word should be 0. It is ");
85+
Serial.println(myTCXO.getFrequencyControlWord());
86+
87+
Serial.println("Applying a clock bias of +200ns");
88+
// Set the frequency by clock bias (+200ns, +200e-6ms)
89+
// For this test, set the P term to 1.0 and the I term to 0.0
90+
myTCXO.setFrequencyByBiasMillis(200.0e-6, 1.0, 0.0);
8591

8692
Serial.print("Frequency should be 9999999.97 Hz. It is ");
8793
Serial.print(myTCXO.getFrequencyHz());

src/SparkFun_SiT5358.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ void SfeSiT5358Driver::setMaxFrequencyChangePPB(double ppb)
256256

257257
/// @brief Set the frequency according to the GNSS receiver clock bias in milliseconds
258258
/// @param bias the GNSS RX clock bias in milliseconds
259-
/// @param Pk the Proportional term (default 1.0)
260-
/// @param Ik the Integral term (default 0.0)
259+
/// @param Pk the Proportional term
260+
/// @param Ik the Integral term
261261
/// @return true if the write is successful
262262
/// Note: the frequency change will be limited by: the pull range capabilities of the device;
263263
/// and the setMaxFrequencyChangePPB. Call getFrequencyHz to read the frequency set.

0 commit comments

Comments
 (0)