Using float optional

Discussions and support about ChibiOS/EX, the External Peripherals Abstraction Layer.
Post Reply
vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Using float optional

Post 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.
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Using float optional

Post 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.
vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: Using float optional

Post by vrollei »

Hi,

we can have integer cooked data and optional float cooked data.
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Using float optional

Post by RoccoMarco »

Does it mean we should implement fixed point algebra? I am not so convinced about that.
vrollei
Posts: 163
Joined: Sun Nov 13, 2016 8:44 am
Been thanked: 26 times

Re: Using float optional

Post by vrollei »

At least not use float in raw functions, in this case cooked and float will not be linked
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Using float optional

Post by RoccoMarco »

As far as I know float is not used in raw functions...
Do you have seen float in some getRaw?
Post Reply