CAN FD循环周期的更改

This commit is contained in:
2025-07-09 22:36:08 +08:00
parent 42c4502a8d
commit fdd321e635
2 changed files with 4 additions and 4 deletions

View File

@@ -96,13 +96,13 @@ namespace CapMachine.Wpf.CanDrive
/// <summary> /// <summary>
/// 更新配置 /// 更新配置
/// </summary> /// </summary>
public void UpdateConfig(uint arbBaudRate, uint dataBaudRate, bool iSOEnable, bool resEnable) public void UpdateConfig(uint arbBaudRate, uint dataBaudRate, bool iSOEnable, bool resEnable,ushort sendCycle)
{ {
ArbBaudRate = arbBaudRate; ArbBaudRate = arbBaudRate;
DataBaudRate = dataBaudRate; DataBaudRate = dataBaudRate;
ISOEnable = iSOEnable; ISOEnable = iSOEnable;
ResEnable = resEnable; ResEnable = resEnable;
SendCycle=sendCycle;
} }
/// <summary> /// <summary>

View File

@@ -176,7 +176,7 @@ namespace CapMachine.Wpf.ViewModels
{ {
//更新波特率等配置信息 //更新波特率等配置信息
CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate, CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate,
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable); (uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable, (ushort)SelectedCANConfigExdDto.Cycle);
} }
//配置信息 //配置信息
@@ -537,7 +537,7 @@ namespace CapMachine.Wpf.ViewModels
{ {
//更新波特率等配置信息 //更新波特率等配置信息
CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate, CanFdDriveService.ToomossCanFDDrive.UpdateConfig((uint)SelectedCANConfigExdDto.ArbBaudRate,
(uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable); (uint)SelectedCANConfigExdDto.DataBaudRate, SelectedCANConfigExdDto.ISOEnable, SelectedCANConfigExdDto.ResEnable, (ushort)SelectedCANConfigExdDto.Cycle);
} }
var WirteData = SelectCanLinConfigPro.CanLinConfigContents!.Where(a => a.RWInfo == RW.Write).ToList(); var WirteData = SelectCanLinConfigPro.CanLinConfigContents!.Where(a => a.RWInfo == RW.Write).ToList();