feat(navigation): calculate and save TMAP routes from Tracker

This commit is contained in:
liu weikai committed 2026-10-15 13:03:23 +08:00
1 parent dac0702dd7
commit c3cb00f242
37 files changed
+2247 -120

No files matched your search

@@ -0,0 +1,10 @@
#pragma once
#include "lvgl.h"
namespace tracker::ui::navigation_dialog
{
using Completed = void (*)(const char* path, void* context);
bool open(lv_obj_t* parent, Completed completed, void* context = nullptr);
bool is_open();
void close();
} // namespace tracker::ui::navigation_dialog
@@ -19,7 +19,8 @@ struct TrackerPageState
enum class Mode : uint8_t
{
Record = 0,
Route = 1
Route = 1,
Navigation = 2
};
enum class FocusColumn : uint8_t
{
@@ -49,6 +50,8 @@ struct TrackerPageState
lv_obj_t* mode_record_label = nullptr;
lv_obj_t* mode_route_btn = nullptr;
lv_obj_t* mode_route_label = nullptr;
lv_obj_t* mode_navigation_btn = nullptr;
lv_obj_t* mode_navigation_label = nullptr;
lv_obj_t* status_label = nullptr;