You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// While the module is _locking_ to GNSS time, turn off pulse
667
-
timePulseParameters.freqPeriod = 1000000; //Set the period between pulses in us
668
-
timePulseParameters.pulseLenRatio = 0; //Set the pulse length in us
668
+
response &= i2cGNSS.addCfgValset32(UBLOX_CFG_TP_PERIOD_TP1, 1000000); //Set the period between pulses in us
669
+
response &= i2cGNSS.addCfgValset32(UBLOX_CFG_TP_LEN_TP1, 0); //Set the pulse length in us
669
670
670
671
// When the module is _locked_ to GNSS time, make it generate 1kHz
671
-
timePulseParameters.freqPeriodLock = settings.externalPulseTimeBetweenPulse_us; //Set the period between pulses is us
672
-
timePulseParameters.pulseLenRatioLock = settings.externalPulseLength_us; //Set the pulse length in us
673
-
674
-
timePulseParameters.flags.bits.active = settings.enableExternalPulse; //Make sure the active flag is set to enable the time pulse. (Set to 0 to disable.)
675
-
timePulseParameters.flags.bits.lockedOtherSet = 1; //Tell the module to use freqPeriod while locking and freqPeriodLock when locked to GNSS time
676
-
timePulseParameters.flags.bits.isFreq = 0; //Tell the module that we want to set the period
677
-
timePulseParameters.flags.bits.isLength = 1; //Tell the module that pulseLenRatio is a length (in us)
678
-
timePulseParameters.flags.bits.polarity = (uint8_t)settings.externalPulsePolarity; //Rising or failling edge type pulse
672
+
response &= i2cGNSS.addCfgValset32(UBLOX_CFG_TP_PERIOD_LOCK_TP1, settings.externalPulseTimeBetweenPulse_us); //Set the period between pulses is us
673
+
response &= i2cGNSS.sendCfgValset32(UBLOX_CFG_TP_LEN_LOCK_TP1, settings.externalPulseLength_us); //Set the pulse length in us
679
674
680
-
if (i2cGNSS.setTimePulseParameters(&timePulseParameters, 1000) == false)
0 commit comments