gps now over spi

This commit is contained in:
2022-12-09 14:10:57 +01:00
parent 599f176622
commit f14992c040
26 changed files with 974 additions and 225 deletions
+10 -7
View File
@@ -61,6 +61,8 @@ void makeMenu(void);
void setup() {
Serial.begin(115200);
// DebugTimes::setConsolOutput(true);
DebugTimes setupTime;
char wifiIndicator = 'X';
mainBattery = new Battery(35, 692000, 218500);
@@ -79,12 +81,12 @@ void setup() {
driveManager = new DriveManager(&moveController, wifiIsActive);
if (wifiIsActive) {
const char* remoteHost = "www.google.com";
std::cout << "Pinging host: " << remoteHost << std::endl;
if (Ping.ping(remoteHost))
std::cout << "Ping successful..." << std::endl;
else
std::cout << "Ping failed. :/" << std::endl;
// const char* remoteHost = "www.google.com";
// std::cout << "Pinging host: " << remoteHost << std::endl;
// if (Ping.ping(remoteHost))
// std::cout << "Ping successful..." << std::endl;
// else
// std::cout << "Ping failed. :/" << std::endl;
if (Network::checkMQTT()) {
DebugMqtt::init(Network::getMqttClient(), Loglevel::debug);
@@ -122,6 +124,8 @@ void setup() {
lcd->print("Press PS-Button");
makeMenu();
setupTime.stopConsol("Setup");
}
void loop() {
@@ -131,7 +135,6 @@ void loop() {
Network::checkMQTT();
wifiTime.stopConsol("WiFi-Time", 5);
}
driveManager->loop();
DebugTimes mainBatteryTime;