msr icon indicating copy to clipboard operation
msr copied to clipboard

support basic math operations

Open flosse opened this issue 7 years ago • 4 comments

I'd like to express conditions like |fcr001 - fcr002| > 0.5, so the two math. operations Sub and Abs could do the start :)

flosse avatar Jul 25 '18 12:07 flosse

@flosse I was just looking at the compare module. Could pub enum Comparator be renamed pub enum Operator and used as such? I.e. Operator::Sub, Operator::Abs.

Side note: How active is this project? I think it's interesting, and looking for maybe doing some simple PR but I'm not sure whether anyone is using it? :slightly_smiling_face:

NOP0 avatar May 18 '20 18:05 NOP0

@flosse I was just looking at the compare module. Could pub enum Comparator be renamed pub enum Operator and used as such? I.e. Operator::Sub, Operator::Abs.

I'd rather replace the whole module with something else that already exists because I don't want to reinvent the wheel and I don't want to create a new programming language ;-)

Side note: How active is this project? I think it's interesting, and looking for maybe doing some simple PR but I'm not sure whether anyone is using it? :slightly_smiling_face:

We're currently working on a new version (it's not opensourced yet) that won't be compatible with the current msr version but it will be much more powerful :smile: Would you mind to share your use case? What are you going to build?

flosse avatar May 19 '20 07:05 flosse

I'd rather replace the whole module with something else that already exists because I don't want to reinvent the wheel and I don't want to create a new programming language ;-)

I agree :slightly_smiling_face:

We're currently working on a new version

Okay, I'll just wait and see what the next version brings then, no point in working on the old one :+1: I don't have a use case right now, I'm just very interested in the PLC/Automation/Rust intersection/combo. I think it could have a lot to offer :smile:

NOP0 avatar May 19 '20 18:05 NOP0

Great to see a new version come together. Please post any entry level issues if you like, and keep up the good work 👍

NOP0 avatar Oct 11 '21 17:10 NOP0