GPS updates (#3142)

* Portduino multiple logging levels

* Fixes based on GPSFan work

* Fix derped logic

* Correct size field for AID message

* Reformat to add comments, beginning of GPS rework

* Update PM2 message for Neo-6

* Correct ECO mode logic as ECO mode is only for Neo-6

* Cleanup ubx.h add a few more comments

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Ken McGuire
2024-01-30 16:38:31 -07:00
committed by GitHub
parent ca45888f3e
commit 9586c68c65
7 changed files with 177 additions and 123 deletions

View File

@@ -113,7 +113,15 @@ void portduinoSetup()
try {
if (yamlConfig["Logging"]) {
settingsMap[debugmode] = yamlConfig["Logging"]["DebugMode"].as<bool>(false);
if (yamlConfig["Logging"]["LogLevel"].as<std::string>("info") == "debug") {
settingsMap[logoutputlevel] = level_debug;
} else if (yamlConfig["Logging"]["LogLevel"].as<std::string>("info") == "info") {
settingsMap[logoutputlevel] = level_info;
} else if (yamlConfig["Logging"]["LogLevel"].as<std::string>("info") == "warn") {
settingsMap[logoutputlevel] = level_warn;
} else if (yamlConfig["Logging"]["LogLevel"].as<std::string>("info") == "error") {
settingsMap[logoutputlevel] = level_error;
}
}
if (yamlConfig["Lora"]) {
settingsMap[use_sx1262] = false;