HEADS-project / heads_ide

http://heads-project.eu
9 stars 2 forks source link

Handling Float data type #32

Closed mboussaa closed 9 years ago

mboussaa commented 9 years ago

Does ThingML handle the Float data type? because in datatypes.thingml all primitive types are defined except the Float type.

brice-morin commented 9 years ago

Well, ThingML does not handle datatypes "natively". If you need float, you can define your own datatype, with the proper mappings for each platforms using e.g. @java_type "float". I guess we did not define float by default, as it is not recommended (though possible) on platforms like Arduino (float operation being slow as hell).

In the tutorial, we for example define a datatype JThread for the Java timer to be able to hold a reference to a Java Thread.

I will close the issue for now, as it is not an issue. Just try defining your own datatype. Then if if fails, we can re-open it.