From c831a6a5b8edb4ea6f0f9edcd0b7245b631eb24d Mon Sep 17 00:00:00 2001 From: Tyler Lentz Date: Wed, 17 Apr 2024 20:00:03 +0000 Subject: [PATCH] remove testing stuff --- .devcontainer/devcontainer.json | 11 ++++++----- src/ticks/mission_prep.cpp | 4 ---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6a0cf67d..2cd7abd9 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,16 +1,17 @@ // See this page for reference of options: https://containers.dev/implementors/json_reference { "name": "Existing Dockerfile", - "image": "ghcr.io/tritonuas/obcpp:main", + "image": "ghcr.io/tritonuas/obcpp:x86", // enable when need to connect over USB to pixhawk // also: need to run obcpp with sudo or add tuas user to dialout group with // `sudo usermod -aG dialout tuas && newgrp && bash` // "runArgs": ["--device=/dev/ttyACM0"], - "appPort": [ "45906:45906/udp", "45907:45907/udp" ], // port forward airdrop ports for local testing - "runArgs": [ - "--network=host" - ], + // Enable network mode host if on Linux and testing airdrop connectivity + // "appPort": [ "45906:45906/udp", "45907:45907/udp" ], // port forward airdrop ports for local testing + // "runArgs": [ + // "--network=host" + // ], "customizations": { "vscode": { diff --git a/src/ticks/mission_prep.cpp b/src/ticks/mission_prep.cpp index ebaf7629..b85f5d84 100644 --- a/src/ticks/mission_prep.cpp +++ b/src/ticks/mission_prep.cpp @@ -18,10 +18,6 @@ std::chrono::milliseconds MissionPrepTick::getWait() const { using namespace std::chrono_literals; Tick* MissionPrepTick::tick() { - if (this->state->getAirdrop() != nullptr) { - LOG_F(INFO, "%ld", this->state->getAirdrop()->getLostConnections(1s).size()); - } - if (this->state->config.getCachedMission().has_value()) { LOG_F(INFO, "Valid mission configuration detected"); return new PathGenTick(this->state);