fix: DDS couldn't apply

This commit is contained in:
2025-05-17 13:10:00 +08:00
parent c39f688115
commit 9b2ee8ad46
5 changed files with 512 additions and 390 deletions

View File

@@ -253,7 +253,7 @@ const waveformSlots = ref<
{ name: "正弦波", type: "sine", data: null },
{ name: "方波", type: "square", data: null },
{ name: "三角波", type: "triangle", data: null },
{ name: "", type: "", data: null },
{ name: "锯齿波", type: "sawtooth", data: null },
]);
// 绘图相关
@@ -408,7 +408,7 @@ async function applyOutputWave() {
eqps.boardPort,
0,
currentWaveformIndex.value,
frequency.value * Math.pow(2, 32 - 20),
toInteger( frequency.value * Math.pow(2, 32 - 20) / 10 ),
);
if (!ret) {
dialog.error("应用失败");