DataProcess/TestData.cs
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Threading.Tasks;
using AgingTest.Tools;
namespace AgingTest.DataProcess
{
public enum TestState
{
free, //0x06:空闲
ready, //0x07:马上开始测试
running, //0x01:正在测试
report, //0x03:接收数据报告
stop //0x04:停止测试
}
public class TestData
{
public List<Dictionary<string, object>> PlatformList = new List<Dictionary<string, object>>();
public bool WaitforSignal = false;
public int PlatformNum { get; set; }
public string MotorId { get; set; }
public string CAN_ID { get; set; }
public bool WaitForMsg { get; set; }
public byte CurrentState { get; set; }
public TestState Stage { get; set; }
public byte[] SendData { get; set; }
public int SendCount { get; set; }
public int TimerSplit { get; set; }
/////////////////////////////////////////////////////////////////////////////////////////////////////
//接收报告buffer
public byte[] ReportBuff = new byte[1024];
public byte FinalProcesseByte = new byte();
public PowerOnCheckStruct PowerOnCheck;
//寻找电机零位
public GetEleZeroStruct GetEleZero;
//电动测试
public PointMoveTestStruct PointMoveTest;
//前置工况
public PreconditionStruct Precondition;
//外特性测试
public ExteCharacterStruct ExteCharacter;
//速度精度
public SpeedAccuracyStruct SpeedAccuracy;
//位置精度
public PosAccuracyStruct PosAccuracy;
//特定工况
public SpecCondStruct SpecCond;
public string ReportStr = "";
public string ErrorInfo = "";
public string FinalProcess = "";
后面还有 876 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
