Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 3fef932

Browse files
author
Nathan Seidle
committed
VSC white space changes
1 parent 3b5a81b commit 3fef932

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const uint8_t UBX_CFG_VALGET = 0x8B; //Used for config of higher version Ublox m
105105
const uint8_t UBX_CFG_VALDEL = 0x8C; //Used for config of higher version Ublox modules (ie protocol v27 and above)
106106

107107
const uint8_t UBX_CFG_GEOFENCE = 0x69; //Used to configure a geofence
108-
const uint8_t UBX_CFG_ANT = 0x13; //Used to configure the antenna control settings
108+
const uint8_t UBX_CFG_ANT = 0x13; //Used to configure the antenna control settings
109109
const uint8_t UBX_NAV_GEOFENCE = 0x39; //Used to poll the geofence status
110110

111111
const uint8_t UBX_CFG_TMODE3 = 0x71; //Used to enable Survey In Mode
@@ -195,19 +195,21 @@ typedef struct
195195
} ubxPacket;
196196

197197
// Struct to hold the results returned by getGeofenceState (returned by UBX-NAV-GEOFENCE)
198-
typedef struct {
199-
uint8_t status; // Geofencing status: 0 - Geofencing not available or not reliable; 1 - Geofencing active
200-
uint8_t numFences; // Number of geofences
201-
uint8_t combState; // Combined (logical OR) state of all geofences: 0 - Unknown; 1 - Inside; 2 - Outside
202-
uint8_t states[4]; // Geofence states: 0 - Unknown; 1 - Inside; 2 - Outside
198+
typedef struct
199+
{
200+
uint8_t status; // Geofencing status: 0 - Geofencing not available or not reliable; 1 - Geofencing active
201+
uint8_t numFences; // Number of geofences
202+
uint8_t combState; // Combined (logical OR) state of all geofences: 0 - Unknown; 1 - Inside; 2 - Outside
203+
uint8_t states[4]; // Geofence states: 0 - Unknown; 1 - Inside; 2 - Outside
203204
} geofenceState;
204205

205206
// Struct to hold the current geofence parameters
206-
typedef struct {
207-
uint8_t numFences; // Number of active geofences
208-
int32_t lats[4]; // Latitudes of geofences (in degrees * 10^-7)
209-
int32_t longs[4]; // Longitudes of geofences (in degrees * 10^-7)
210-
uint32_t rads[4]; // Radii of geofences (in m * 10^-2)
207+
typedef struct
208+
{
209+
uint8_t numFences; // Number of active geofences
210+
int32_t lats[4]; // Latitudes of geofences (in degrees * 10^-7)
211+
int32_t longs[4]; // Longitudes of geofences (in degrees * 10^-7)
212+
uint32_t rads[4]; // Radii of geofences (in m * 10^-2)
211213
} geofenceParams;
212214

213215
class SFE_UBLOX_GPS
@@ -340,13 +342,13 @@ class SFE_UBLOX_GPS
340342
void debugPrint(char *message); //Safely print debug statements
341343
void debugPrintln(char *message); //Safely print debug statements
342344

343-
//Support for geofences
344-
boolean addGeofence(int32_t latitude, int32_t longitude, uint32_t radius, byte confidence = 0, byte pinPolarity = 0, byte pin = 0, uint16_t maxWait = 2000); // Add a new geofence
345-
boolean clearGeofences(uint16_t maxWait = 2000); //Clears all geofences
346-
boolean getGeofenceState(geofenceState &currentGeofenceState, uint16_t maxWait = 2000); //Returns the combined geofence state
345+
//Support for geofences
346+
boolean addGeofence(int32_t latitude, int32_t longitude, uint32_t radius, byte confidence = 0, byte pinPolarity = 0, byte pin = 0, uint16_t maxWait = 2000); // Add a new geofence
347+
boolean clearGeofences(uint16_t maxWait = 2000); //Clears all geofences
348+
boolean getGeofenceState(geofenceState &currentGeofenceState, uint16_t maxWait = 2000); //Returns the combined geofence state
347349

348-
//Power Save Mode
349-
boolean powerSaveMode(bool power_save = true, uint16_t maxWait = 2000);
350+
//Power Save Mode
351+
boolean powerSaveMode(bool power_save = true, uint16_t maxWait = 2000);
350352

351353
//Survey-in specific controls
352354
struct svinStructure
@@ -529,9 +531,9 @@ class SFE_UBLOX_GPS
529531

530532
uint16_t rtcmLen = 0;
531533

532-
//Support for geofences
533-
boolean clearAntPIO(uint16_t maxWait = 2000); //Clears the antenna control pin settings to release the PIOs
534-
geofenceParams currentGeofenceParams; // Global to store the geofence parameters
534+
//Support for geofences
535+
boolean clearAntPIO(uint16_t maxWait = 2000); //Clears the antenna control pin settings to release the PIOs
536+
geofenceParams currentGeofenceParams; // Global to store the geofence parameters
535537
};
536538

537539
#endif

0 commit comments

Comments
 (0)