gps now over spi
This commit is contained in:
+10
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user