Skip to content

Commit 31127e9

Browse files
committed
(re-enable some logs for troubleshooting)
1 parent a0e71f5 commit 31127e9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

firmware/main/localization/gps_collector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ std::optional<GpsPose> GpsCollector::Update(const ParsedNmea& nmea) {
4646
std::visit(
4747
overloaded{
4848
[this](const minmea_sentence_rmc& rmc) {
49+
ESP_LOGW(TAG, "(%d,%d)", rmc.latitude.value, rmc.longitude.value);
4950
const auto timestamp = GetTimestampFromMinmeaDateTime(rmc.date, rmc.time);
5051
if (timestamp) {
5152
pose_.timestamp_ms = ToMilliseconds(*timestamp);

firmware/main/map/map_index.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ esp_err_t MapIndex::Load(std::string_view map_data_path) {
5454
std::pair<const MapIndex::Entry*, double> MapIndex::GetNearestMap(const Eigen::Vector2d& latlon) {
5555
CHECK(!entries_.empty());
5656
// TODO: use some kind of nearest neighbor impl
57-
// ESP_LOGE(TAG, "GetNearestMap(%+9.5f, %+10.5f)", latlon[0], latlon[1]); // DEBUG
57+
ESP_LOGE(TAG, "GetNearestMap(%+9.5f, %+10.5f)", latlon[0], latlon[1]); // DEBUG
5858
double min_distance = 1e100;
5959
const Entry* min_entry = nullptr;
6060
for (const Entry& entry : entries_) {
6161
const double distance = GeodesicDistance(entry.origin_latlon, latlon);
62-
// ESP_LOGW(TAG, "- %s: %.3f", entry.name.c_str(), distance); // DEBUG
62+
ESP_LOGW(TAG, "- %s: %.3f", entry.name.c_str(), distance); // DEBUG
6363
if (distance < min_distance) {
6464
min_distance = distance;
6565
min_entry = &entry;

0 commit comments

Comments
 (0)