Files
ECAP_Server/module/Local_Server/Data_Source/BaseStation.h
T
2026-07-27 15:17:13 +08:00

18 lines
556 B
C++

#pragma once
#include "global.h"
class BaseStation {
public:
std::string to_string();
Psc::JSON to_Json();
std::optional<SSR::Position_3D> get_pos();
double get_height();
bool has_valid_position();
void set_msg(const SSR::HULC_Status_Message& msg);
static double theoretical_detection_range_meters(double base_height_meters, double target_height_meters);
std::function<void(const SSR::HULC_Status_Message&)> handle_when_updated = nullptr;
protected:
std::mutex mtx;
SSR::HULC_Status_Message hulc{};
};
class Global;