feat(protocol): Observation坐标字段可选化及协议v2扩展 - 将Observation中longitude/latitude/altitude_m/heading_deg改为Option类型, 支持无位置信息的观测数据 - 新增DeviceTelemetry结构体承载设备遥测扩展字段(serial, mac, model, rssi, speed, vertical_speed, pressure_altitude, geometric_altitude, height_agl, pilot_position等) - 新增LegacyObservation兼容结构体及From转换,保持旧接收器协议输入兼容 - PROTOCOL_VERSION从1升至2 - 新增coordinates()辅助方法统一提取有效坐标 - validate()适配Option类型,允许坐标字段同时缺失 - Store新增position_generation机制追踪位置可用性变化,确保合并帧间的 位置丢失仍能正确断开轨迹 - geofence-map-adapter过滤无效坐标避免渲染异常 - 新增appearance.css外观主题系统,支持blue/graphite/white三套配色 ```
16 lines
428 B
TOML
16 lines
428 B
TOML
[package]
|
|
name = "rid-web-worker"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
rid-shared = { path = "../rid-shared" }
|
|
serde_json = "1"
|
|
postcard = { version = "1", features = ["alloc"] }
|
|
wasm-bindgen = "=0.2.129"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["DedicatedWorkerGlobalScope", "WebSocket", "BinaryType", "MessageEvent", "CloseEvent", "ErrorEvent", "console"] }
|