Page 1 of 1

Using float optional

Posted: Fri Sep 15, 2017 3:54 pm
by vrollei
Hi,

it would be great to have configuration macro to enable/disable using float arithmetic in base driver's interfaces (BaseSensor and so on) to use EX on small processors with NIL.

Re: Using float optional

Posted: Tue Feb 27, 2018 1:57 pm
by RoccoMarco
Hello there.
I totally missed this post. I'll think about it. The point is that without floating point the whole concept of cooked data would became meaningless.

Re: Using float optional

Posted: Tue Feb 27, 2018 2:03 pm
by vrollei
Hi,

we can have integer cooked data and optional float cooked data.

Re: Using float optional

Posted: Tue Feb 27, 2018 2:10 pm
by RoccoMarco
Does it mean we should implement fixed point algebra? I am not so convinced about that.

Re: Using float optional

Posted: Tue Feb 27, 2018 2:18 pm
by vrollei
At least not use float in raw functions, in this case cooked and float will not be linked

Re: Using float optional

Posted: Tue Feb 27, 2018 7:21 pm
by RoccoMarco
As far as I know float is not used in raw functions...
Do you have seen float in some getRaw?