# 对专机2部6轴平台支持,修改HexalMC

This commit is contained in:
zhengxuan.zhang
2025-03-29 16:20:59 +08:00
parent 9f3ee84467
commit 6ad8cfcd14
37 changed files with 8287 additions and 8278 deletions
+2 -18
View File
@@ -1,26 +1,13 @@
using ACS.SPiiPlusNET;
using HexcalMC.Base;
using ScottPlot.Renderable;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Forms;
using System.Windows.Markup;
using Telerik.WinControls.UI;
using static ScottPlot.Generate;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Rebar;
namespace HexcalMC
{
public partial class MonitorForm : System.Windows.Forms.Form
{
private readonly MainFrom mainFrom;
private readonly MainForm mainFrom;
private readonly Api _acs; //ACS控制器
private double[] dataX; // X轴数据(时间戳)
@@ -28,7 +15,7 @@ namespace HexcalMC
private int dataLength = 200; // 显示的数据点数量‌:ml-citation{ref="4,5" data="citationList"}
private Random rand = new Random();
public MonitorForm(MainFrom _mainFrom)
public MonitorForm(MainForm _mainFrom)
{
InitializeComponent();
@@ -65,7 +52,6 @@ namespace HexcalMC
}
// 定时器事件:更新数据并刷新图表
private void dataTimer_Tick(object sender, EventArgs e)
{
@@ -91,10 +77,8 @@ namespace HexcalMC
});
}
private double GetSpeed(int axis)
{
//判断对象是否为空
if (_acs == null)
{