minor code cleaning

This commit is contained in:
richonguzman 2024-05-30 20:04:46 -04:00
parent d2923cc0b6
commit c67f5b60e5
7 changed files with 54 additions and 54 deletions

View File

@ -6,15 +6,15 @@
namespace APRS_IS_Utils { namespace APRS_IS_Utils {
void upload(const String& line); void upload(const String& line);
void connect(); void connect();
void checkStatus(); void checkStatus();
String buildPacketToUpload(const String& packet); String buildPacketToUpload(const String& packet);
String buildPacketToTx(const String& aprsisPacket, uint8_t packetType); String buildPacketToTx(const String& aprsisPacket, uint8_t packetType);
bool processReceivedLoRaMessage(const String& sender, const String& packet); bool processReceivedLoRaMessage(const String& sender, const String& packet);
void processLoRaPacket(const String& packet); void processLoRaPacket(const String& packet);
void processAPRSISPacket(const String& packet); void processAPRSISPacket(const String& packet);
void listenAPRSIS(); void listenAPRSIS();
} }

View File

@ -10,12 +10,12 @@
namespace BME_Utils { namespace BME_Utils {
void getWxModuleAddres(); void getWxModuleAddres();
void setup(); void setup();
String generateTempString(float bmeTemp); String generateTempString(float bmeTemp);
String generateHumString(float bmeHum); String generateHumString(float bmeHum);
String generatePresString(float bmePress); String generatePresString(float bmePress);
String readDataSensor(); String readDataSensor();
} }

View File

@ -6,8 +6,8 @@
namespace DIGI_Utils { namespace DIGI_Utils {
String generateDigiRepeatedPacket(const String& packet); String generateDigiRepeatedPacket(const String& packet);
void processLoRaPacket(const String& packet); void processLoRaPacket(const String& packet);
} }

View File

@ -6,14 +6,14 @@
namespace GPS_Utils { namespace GPS_Utils {
String getiGateLoRaBeaconPacket(); String getiGateLoRaBeaconPacket();
char *ax25_base91enc(char *s, uint8_t n, uint32_t v); char *ax25_base91enc(char *s, uint8_t n, uint32_t v);
String encodeGPS(float latitude, float longitude, const String& overlay, const String& symbol); String encodeGPS(float latitude, float longitude, const String& overlay, const String& symbol);
void generateBeacons(); void generateBeacons();
double calculateDistanceCourse(double latitude, double longitude); double calculateDistanceCourse(double latitude, double longitude);
String decodeEncodedGPS(const String& packet); String decodeEncodedGPS(const String& packet);
String getReceivedGPS(const String& packet); String getReceivedGPS(const String& packet);
String getDistanceAndComment(const String& packet); String getDistanceAndComment(const String& packet);
} }

View File

@ -6,14 +6,14 @@
namespace LoRa_Utils { namespace LoRa_Utils {
void setup(); void setup();
void sendNewPacket(const String& newPacket); void sendNewPacket(const String& newPacket);
String packetSanitization(const String& packet); String packetSanitization(const String& packet);
String receivePacket(); String receivePacket();
void changeFreqTx(); void changeFreqTx();
void changeFreqRx(); void changeFreqRx();
void startReceive(); // ??? void startReceive(); // ???
void sleepRadio(); void sleepRadio();
} }

View File

@ -11,13 +11,13 @@
namespace POWER_Utils { namespace POWER_Utils {
double getBatteryVoltage(); double getBatteryVoltage();
bool isBatteryConnected(); bool isBatteryConnected();
void activateMeasurement(); void activateMeasurement();
void activateLoRa(); void activateLoRa();
void deactivateLoRa(); void deactivateLoRa();
bool begin(TwoWire &port); bool begin(TwoWire &port);
void setup(); void setup();
} }

View File

@ -8,24 +8,24 @@ public:
long millis; long millis;
String packet; String packet;
int RSSI; int RSSI;
float SNR; float SNR;
}; };
namespace Utils { namespace Utils {
void processStatus(); void processStatus();
String getLocalIP(); String getLocalIP();
void setupDisplay(); void setupDisplay();
void activeStations(); void activeStations();
void checkBeaconInterval(); void checkBeaconInterval();
void checkDisplayInterval(); void checkDisplayInterval();
void validateFreqs(); void validateFreqs();
void typeOfPacket(const String& packet, uint8_t packetType); void typeOfPacket(const String& packet, uint8_t packetType);
void print(const String& text); void print(const String& text);
void println(const String& text); void println(const String& text);
void checkRebootMode(); void checkRebootMode();
void checkRebootTime(); void checkRebootTime();
void checkSleepByLowBatteryVoltage(uint8_t mode); void checkSleepByLowBatteryVoltage(uint8_t mode);
} }