✨ feat(planning): 添加离线飞拍规划能力
* 固化离线飞拍轨迹加载、保存和规划结果。 * 真机初始化失败时保留模型加载后的离线规划能力。 * 更新状态接口、调试页和回归测试覆盖。
This commit is contained in:
@@ -39,7 +39,8 @@ public static class FlyshotExecutionSendSequenceBuilder
|
||||
throw new ArgumentOutOfRangeException(nameof(servoPeriodSeconds), "伺服周期必须是有限正数。");
|
||||
}
|
||||
|
||||
var finalSpeedRatio = samplingSpeedRatio ?? 1.0;
|
||||
// 未显式指定独立采样倍率时,最终发送队列必须原样使用请求倍率。
|
||||
var finalSpeedRatio = samplingSpeedRatio ?? requestedSpeedRatio;
|
||||
if (finalSpeedRatio <= 0.0 || double.IsNaN(finalSpeedRatio) || double.IsInfinity(finalSpeedRatio))
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(samplingSpeedRatio), "最终队列采样倍率必须是有限正数。");
|
||||
@@ -56,7 +57,7 @@ public static class FlyshotExecutionSendSequenceBuilder
|
||||
robot,
|
||||
samples,
|
||||
trajectoryName: result.ProgramName,
|
||||
validateJerk: false,
|
||||
validateJerk: true,
|
||||
strictJerkTolerance: true);
|
||||
}
|
||||
catch (InvalidOperationException exception)
|
||||
|
||||
Reference in New Issue
Block a user