- DroneType 枚举清理:移除 Electric/Piston,重编号 HighSpeed=2 - planner_config.json / defaults.json 同步迁移 - 238 单元测试全部通过
31 lines
745 B
C#
31 lines
745 B
C#
using System;
|
||
using SQLite;
|
||
|
||
namespace CounterDrone.Core.Models
|
||
{
|
||
/// <summary>航路点</summary>
|
||
[Table("Waypoint")]
|
||
public class Waypoint
|
||
{
|
||
[PrimaryKey]
|
||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||
|
||
[Indexed]
|
||
public string ScenarioId { get; set; } = string.Empty;
|
||
|
||
/// <summary>关联的批次 ID(多批次支持)</summary>
|
||
public string WaveId { get; set; } = string.Empty;
|
||
|
||
[NotNull]
|
||
public int OrderIndex { get; set; }
|
||
|
||
public double PosX { get; set; }
|
||
public double PosY { get; set; }
|
||
public double PosZ { get; set; }
|
||
|
||
public double Altitude { get; set; }
|
||
|
||
public double Speed { get; set; }
|
||
}
|
||
}
|