Skip to content

Commit 0bac69e

Browse files
committed
Rename Facet Flex to Flex
1 parent 2ea521b commit 0bac69e

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void identifyBoard()
147147
else if (idWithAdc(idValue, 12.1, 1.5, 8.5))
148148
productVariant = RTK_FACET_V2_LBAND;
149149

150-
// Facet Flex: 10.0/20.0 --> 2071mV < 2200mV < 2322mV (8.5% tolerance)
150+
// Flex: 10.0/20.0 --> 2071mV < 2200mV < 2322mV (8.5% tolerance)
151151
else if (idWithAdc(idValue, 10.0, 20.0, 8.5))
152152
productVariant = RTK_FLEX;
153153

@@ -159,13 +159,13 @@ void identifyBoard()
159159
else if (idWithAdc(idValue, 8.2, 3.3, 8.5))
160160
productVariant = RTK_TORCH_X2;
161161

162-
#ifndef NOT_FACET_FLEX
163-
systemPrintln("<<<<<<<<<< !!!!!!!!!! FLEX FORCED !!!!!!!!!! >>>>>>>>>>");
162+
#ifndef FLEX_OVERRIDE
163+
systemPrintln("<<<<<<<<<< !!!!!!!!!! FLEX OVERRIDE !!!!!!!!!! >>>>>>>>>>");
164164
productVariant = RTK_FLEX; // TODO remove once v1.1 Flex has ID resistors
165165
#endif
166166

167-
#ifndef NOT_TORCH_X2
168-
systemPrintln("<<<<<<<<<< !!!!!!!!!! TORCH X2 FORCED !!!!!!!!!! >>>>>>>>>>");
167+
#ifndef TORCH_X2_OVERRIDE
168+
systemPrintln("<<<<<<<<<< !!!!!!!!!! TORCH X2 OVERRIDE !!!!!!!!!! >>>>>>>>>>");
169169
productVariant = RTK_TORCH_X2; // TODO remove once v1.1 Torch X2 has ID resistors
170170
#endif
171171
}
@@ -631,7 +631,7 @@ void beginBoard()
631631
// mosaic COM3 is connected to the Data connector - via the multiplexer
632632
// mosaic COM3 is available as a generic COM port. The firmware configures the baud. Nothing else.
633633

634-
// NOTE: Facet Flex with mosaic-X5 is VERY different!
634+
// NOTE: Flex with mosaic-X5 is VERY different!
635635

636636
// Specify the GNSS radio
637637
#ifdef COMPILE_MOSAICX5

Firmware/RTK_Everywhere/GNSS.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void gnssDetectReceiverType()
142142

143143
// TODO remove after testing, force retest on each boot
144144
// Note: with this in place, the X5 detection will take a lot longer due to the baud rate change
145-
#ifndef NOT_FACET_FLEX
145+
#ifndef FLEX_OVERRIDE
146146
systemPrintln("<<<<<<<<<< !!!!!!!!!! FLEX FORCED !!!!!!!!!! >>>>>>>>>>");
147147
// settings.detectedGnssReceiver = GNSS_RECEIVER_UNKNOWN; // This may be causing weirdness on the LG290P. Commenting for now
148148
#endif

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void printMosaicCardSpace()
4141
freeSpace.toCharArray(sdFreeSpaceChar, sizeof(sdFreeSpaceChar));
4242

4343
// On Facet mosaic, the SD is connected directly to the X5 and is accessible
44-
// On Facet Flex X5, the internal mosaic SD card is not accessible
44+
// On Flex mosaic-X5, the internal mosaic SD card is not accessible
4545
char myString[70];
4646
snprintf(myString, sizeof(myString), "SD card size: %s / Free space: %s", sdCardSizeChar, sdFreeSpaceChar);
4747
systemPrintln(myString);
@@ -228,7 +228,7 @@ void GNSS_MOSAIC::begin()
228228
// COM4 is connected to the ESP32 for config
229229
// (The comments on the schematic are out of date)
230230

231-
// On Facet Flex (with Ethernet):
231+
// On Flex (with Ethernet):
232232
// COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
233233
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
234234
// COM3 can be connected to ESP32 UART2 (switched by SW3)
@@ -237,7 +237,7 @@ void GNSS_MOSAIC::begin()
237237
// We need to Encapsulate RTCMv3 and NMEA in SBF format. Both SBF and NMEA messages start with "$".
238238
// The alternative would be to add a 'hybrid' parser to the SEMP which can disambiguate SBF and NMEA
239239

240-
// On Facet Flex (with IMU):
240+
// On Flex (with IMU):
241241
// COM1 is connected to the ESP32 UART1 for: Encapsulated RTCMv3 + SBF + NMEA
242242
// COM2 is connected to LoRa or 4-pin JST (switched by SW4)
243243
// COM3 is N/C (ESP32 UART2 is connected to the IMU)
@@ -1587,7 +1587,7 @@ bool GNSS_MOSAIC::isAntennaOpen()
15871587
bool GNSS_MOSAIC::isBlocking()
15881588
{
15891589
// Facet mosaic is non-blocking. It has exclusive access to COM4
1590-
// Facet Flex (mosaic) is blocking. Suspend the GNSS read task only if needed
1590+
// Flex (mosaic) is blocking. Suspend the GNSS read task only if needed
15911591
return _isBlocking && (productVariant == RTK_FLEX);
15921592
}
15931593

Firmware/RTK_Everywhere/NVM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void recordSystemSettingsToFile(File *settingsFile)
228228
{
229229
// Do not record this setting if it is not supported by the current platform
230230
// But oh what a tangled web we weave...
231-
// Thanks to Facet Flex, initially we should be saving all possible settings.
231+
// Thanks to Flex, initially we should be saving all possible settings.
232232
// Later, once we know what Flex GNSS is present, we save only the available
233233
// settings for that platform. Passing usePossibleSettings in as a parameter
234234
// would be messy. So, we'll use a global flag which is updated by commandIndexFill

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
7979
*/
8080

81-
// While we wait for the next hardware revision, Facet Flex needs to be manually forced:
82-
#define NOT_FACET_FLEX // Comment out to force support for Facet Flex
83-
//#define NOT_TORCH_X2 // Comment out to force support for Torch X2
81+
// While we wait for the next hardware revisions, Flex and Torch can be manually enabled:
82+
//#define FLEX_OVERRIDE // Uncomment to force support for Flex
83+
#define TORCH_X2_OVERRIDE // Uncomment to force support for Torch X2
8484

8585
// To reduce compile times, various parts of the firmware can be disabled/removed if they are not
8686
// needed during development

Firmware/RTK_Everywhere/SD.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ void sdUpdate()
8484
// On Postcard: on the Portability Shield, SD DET (SD_CD) is connected to
8585
// IO5 of a PCA9554 I2C GPIO expander (address 0x20)
8686
// IO5 is high when the card is present
87-
// On Facet Flex: SD_#CD is connected to ESP32 GPIO39
87+
// On Flex: SD_#CD is connected to ESP32 GPIO39
8888
// Torch: has no SD card
8989
// On Facet mosaic: the SD card is connected directly to the X5 but
9090
// SD_!DET is connected to ESP32 GPIO15
9191
//
9292
// More generally:
9393
// The GPIO expander on Postcard is known as gpioExpanderButtons (0x20)
94-
// Facet Flex also has a GPIO expander, known as gpioExpanderSwitches (0x21)
94+
// Flex also has a GPIO expander, known as gpioExpanderSwitches (0x21)
9595
bool sdCardPresent(void)
9696
{
9797
if (present.microSdCardDetectLow == true)

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ void gnssReadTask(void *e)
480480
// to add extra checks, above and beyond the invalidDataCallback, to make sure that doesn't happen.
481481
// Here we check that the SBF ID and length are expected / valid too.
482482
//
483-
// For Facet Flex mosaic, we need the SBF parser but not the SPARTN parser
483+
// For Flex mosaic, we need the SBF parser but not the SPARTN parser
484484

485485
if (gnss->isBlocking() == false)
486486
{

Firmware/RTK_Everywhere/settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,8 @@ const RTK_Settings_Entry rtkSettingsEntries[] =
12501250
// Detected GNSS Receiver - for Flex. Save / load first so settingAvailableOnPlatform is correct on Flex
12511251
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, ALL, 0, tGnssReceiver, 0, & settings.detectedGnssReceiver, "detectedGnssReceiver", },
12521252

1253-
// Common settings which use the same name on multiple Facet Flex platforms
1254-
// We need these - for Facet Flex - because:
1253+
// Common settings which use the same name on multiple Flex platforms
1254+
// We need these - for Flex - because:
12551255
// During setup, the settings are loaded before we know which GNSS is present
12561256
// Previously, the setting would be applied to whichever GNSS is matched first alphabetically
12571257
// We need to apply these settings to all GNSS initially so that when we

0 commit comments

Comments
 (0)