From a1bf5e300e2345b642d0a13e7e26d22c56156e47 Mon Sep 17 00:00:00 2001 From: "nicolas.zilio@hotmail.fr" <> Date: Mon, 14 Sep 2015 15:49:46 +0200 Subject: views with units functionnal (beware, as formulas are completely crap now, we could get segfault, for example if we want to write a negative value in register) --- xml/model.xsd | 24 +++++++++++++++++++++++- xml/test/camera.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) (limited to 'xml') diff --git a/xml/model.xsd b/xml/model.xsd index 5febd1a..cd0b4b0 100644 --- a/xml/model.xsd +++ b/xml/model.xsd @@ -4,8 +4,9 @@ - + + @@ -107,8 +108,29 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/xml/test/camera.xml b/xml/test/camera.xml index bf26d80..ed01014 100644 --- a/xml/test/camera.xml +++ b/xml/test/camera.xml @@ -491,4 +491,38 @@ enum towards cmosis_exp_register register + + + @self+273.15 + @self*(9./5)+32 + + + @self-273.15 + (@self-273.15)*(9./5)+32 + + + (@self-32)*5./9 + (@self+273.15-32)*5./9 + + + @self*1000 + @self*1000000 + @self*1000000000 + + + @self/1000 + @self*1000 + @self*1000000 + + + @self/1000000 + @self/1000 + @self*1000 + + + @self/1000000000 + @self/1000000 + @self/1000 + + -- cgit v1.2.3