remove old unused

This commit is contained in:
caternuson 2022-09-20 09:29:05 -07:00
parent 237f7b26eb
commit 830e2eee58
1 changed files with 0 additions and 106 deletions

View File

@ -32,112 +32,6 @@
static bool strStartsWith(const char *str, const char *prefix); static bool strStartsWith(const char *str, const char *prefix);
// /**************************************************************************/
// /*!
// @brief Is the field empty, or should we try conversion? Won't work
// for a text field that starts with an asterisk or a comma, but that
// probably violates the NMEA-183 standard.
// @param pStart Pointer to the location of the token in the NMEA string
// @return true if empty field, false if something there
// */
// /**************************************************************************/
// /*!
// @brief Parse a part of an NMEA string for latitude angle
// @param p Pointer to the location of the token in the NMEA string
// */
// /**************************************************************************/
// void Adafruit_GPS::parseLat(char *p) {
// char degreebuff[10];
// if (!isEmpty(p)) {
// strncpy(degreebuff, p, 2);
// p += 2;
// degreebuff[2] = '\0';
// long degree = atol(degreebuff) * 10000000;
// strncpy(degreebuff, p, 2); // minutes
// p += 3; // skip decimal point
// strncpy(degreebuff + 2, p, 4);
// degreebuff[6] = '\0';
// long minutes = 50 * atol(degreebuff) / 3;
// latitude_fixed = degree + minutes;
// latitude = degree / 100000 + minutes * 0.000006F;
// latitudeDegrees = (latitude - 100 * int(latitude / 100)) / 60.0f;
// latitudeDegrees += int(latitude / 100);
// }
// }
// /**************************************************************************/
// /*!
// @brief Parse a part of an NMEA string for latitude direction
// @param p Pointer to the location of the token in the NMEA string
// @return True if we parsed it, false if it has invalid data
// */
// /**************************************************************************/
// bool Adafruit_GPS::parseLatDir(char *p) {
// if (p[0] == 'S') {
// lat = 'S';
// latitudeDegrees *= -1.0f;
// latitude_fixed *= -1;
// } else if (p[0] == 'N') {
// lat = 'N';
// } else if (p[0] == ',') {
// lat = 0;
// } else {
// return false;
// }
// return true;
// }
// /**************************************************************************/
// /*!
// @brief Parse a part of an NMEA string for longitude angle
// @param p Pointer to the location of the token in the NMEA string
// */
// /**************************************************************************/
// void Adafruit_GPS::parseLon(char *p) {
// int32_t degree;
// long minutes;
// char degreebuff[10];
// if (!isEmpty(p)) {
// strncpy(degreebuff, p, 3);
// p += 3;
// degreebuff[3] = '\0';
// degree = atol(degreebuff) * 10000000;
// strncpy(degreebuff, p, 2); // minutes
// p += 3; // skip decimal point
// strncpy(degreebuff + 2, p, 4);
// degreebuff[6] = '\0';
// minutes = 50 * atol(degreebuff) / 3;
// longitude_fixed = degree + minutes;
// longitude = degree / 100000 + minutes * 0.000006F;
// longitudeDegrees = (longitude - 100 * int(longitude / 100)) / 60.0f;
// longitudeDegrees += int(longitude / 100);
// }
// }
// /**************************************************************************/
// /*!
// @brief Parse a part of an NMEA string for longitude direction
// @param p Pointer to the location of the token in the NMEA string
// @return True if we parsed it, false if it has invalid data
// */
// /**************************************************************************/
// bool Adafruit_GPS::parseLonDir(char *p) {
// if (!isEmpty(p)) {
// if (p[0] == 'W') {
// lon = 'W';
// longitudeDegrees *= -1.0f;
// longitude_fixed *= -1;
// } else if (p[0] == 'E') {
// lon = 'E';
// } else if (p[0] == ',') {
// lon = 0;
// } else {
// return false;
// }
// }
// return true;
// }
/**************************************************************************/ /**************************************************************************/
/*! /*!
@brief Start the HW or SW serial port @brief Start the HW or SW serial port