Skip to content

Conversation

@Starkxim
Copy link
Contributor

@Starkxim Starkxim commented Dec 3, 2025

When the cycletime is defined as a FLOAT type, the original code will not be able to read the cycletime and will report an error, I added a little bit of judgment to make it able to read the FLOAT type cycletime

当cycletime被定义为FLOAT类型是,原先的代码将无法读取cycletime并直接报错,我增加了一点判断,使其能够读取FLOAT类型的cycletime
Update ExtensionsAndHelpers.cs to fix cycleTime problem
@Starkxim Starkxim changed the title Update ExtensionsAndHelpers.cs to fix cycleTime problem #95 Update ExtensionsAndHelpers.cs to fix cycleTime problem Dec 3, 2025
@Adhara3
Copy link
Collaborator

Adhara3 commented Jan 9, 2026

Hi,

I fear we ended up in the usual lack of spec issue.
If 20.000 is a valid value, why would 20.500 not be? I mean, the cast solution is fine but will not give you the right number.
So the question is: are we sure the GenMsgCycleTime should be an integer value?

Bottom line: I will merge the PR to unlock you but technically/philosophically speaking this may lead to other issues.

Regards
A

@Adhara3 Adhara3 merged commit 40343c7 into EFeru:main Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants