@@ -390,15 +390,10 @@ bool GNSS_MOSAIC::checkPPPRates()
390
390
// Returns true if successfully configured and false upon failure
391
391
// ----------------------------------------
392
392
// If any of the settings in the signature have changed, reapply the Base configuration
393
- #define GNSS_MOSAIC_BASE_SIGNATURE \
394
- ( \
395
- ((settings.minElev & 0x01 ) << 1 ) \
396
- | ((settings.enableGnssToUsbSerial & 0x01 ) << 2 ) \
397
- | ((settings.enablePointPerfectCorrections & 0x01 ) << 3 ) \
398
- | ((settings.ntripClient_TransmitGGA & 0x01 ) << 4 ) \
399
- | ((settings.enableLogging & 0x01 ) << 5 ) \
400
- | ((settings.enableLoggingRINEX & 0x01 ) << 6 ) \
401
- | ((settings.enableExternalHardwareEventLogging & 0x01 ) << 7 ) \
393
+ // See GNSS_MOSAIC_ROVER_SIGNATURE as an example
394
+ #define GNSS_MOSAIC_BASE_SIGNATURE \
395
+ ( \
396
+ 0 \
402
397
)
403
398
bool GNSS_MOSAIC::configureBase ()
404
399
{
@@ -555,9 +550,9 @@ bool GNSS_MOSAIC::configureLBand(bool enableLBand, uint32_t LBandFreq)
555
550
// ----------------------------------------
556
551
// If any of the settings in the signature have changed, reapply the configuration
557
552
// See GNSS_MOSAIC_ROVER_SIGNATURE as an example
558
- #define GNSS_MOSAIC_ONCE_SIGNATURE \
559
- ( \
560
- 0 \
553
+ #define GNSS_MOSAIC_ONCE_SIGNATURE \
554
+ ( \
555
+ 0 \
561
556
)
562
557
bool GNSS_MOSAIC::configureOnce ()
563
558
{
@@ -662,13 +657,13 @@ bool GNSS_MOSAIC::configureGNSS()
662
657
// Returns true if successfully configured and false upon failure
663
658
// ----------------------------------------
664
659
// If any of the settings in the signature have changed, reapply the Rover configuration
665
- # define GNSS_MOSAIC_ROVER_SIGNATURE \
666
- ( \
667
- ((settings.enablePointPerfectCorrections & 0x01 ) << 1 ) \
668
- | ((settings.enableGnssToUsbSerial & 0x01 ) << 2 ) \
669
- | ((settings.ntripClient_TransmitGGA & 0x01 ) << 3 ) \
670
- | ((settings.enableLogging & 0x01 ) << 4 ) \
671
- | ((settings.enableExternalHardwareEventLogging & 0x01 ) << 5 ) \
660
+ // E.g. ((settings.enablePointPerfectCorrections & 0x01) << 1)
661
+ // | ((settings.enableGnssToUsbSerial & 0x01) << 2)
662
+ // But most of this is taken care of by restartRover and restartBase
663
+ // You should only use the signature to trap any exceptions not covered by restartRover/Base
664
+ # define GNSS_MOSAIC_ROVER_SIGNATURE \
665
+ ( \
666
+ 0 \
672
667
)
673
668
bool GNSS_MOSAIC::configureRover ()
674
669
{
@@ -696,9 +691,9 @@ bool GNSS_MOSAIC::configureRover()
696
691
697
692
response &= sendWithResponse (" spm,Rover,all,auto\n\r " , " PVTMode" );
698
693
699
- response &= setModel (settings.dynamicModel );
694
+ response &= setModel (settings.dynamicModel ); // Set by menuGNSS which calls gnss->setModel
700
695
701
- response &= setElevation (settings.minElev );
696
+ response &= setElevation (settings.minElev ); // Set by menuGNSS which calls gnss->setElevation
702
697
703
698
response &= enableRTCMRover ();
704
699
0 commit comments